Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005523/0.005523, allocations: 100.7 kB / 21.96 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 217.5 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 47.92 kB / 348 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2475, allocations: 49.16 MB / 397.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01154/0.259, allocations: 11.81 MB / 408.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02464/0.2837, allocations: 17.04 MB / 426 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003377/0.287, allocations: 141.8 kB / 426.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003573/0.2906, allocations: 1.104 MB / 427.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008371/0.299, allocations: 2.313 MB / 429.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004736/0.3037, allocations: 1.366 MB / 430.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.3151, allocations: 6.38 MB / 437.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006658/0.3158, allocations: 269.8 kB / 437.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.3175, allocations: 1.062 MB / 438.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.319, allocations: 1.079 MB / 439.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00022/0.3192, allocations: 76 kB / 439.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003465/0.3227, allocations: 1.124 MB / 440.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003815/0.3231, allocations: 325.6 kB / 441.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.3243, allocations: 1.024 MB / 442.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005744/0.3301, allocations: 3.85 MB / 446.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.3301, allocations: 0 / 446.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3301, allocations: 0 / 446.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.573e-05/0.3302, allocations: 0 / 446.1 MB, free: 2.023 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005382/0.3355, allocations: 3.757 MB / 449.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3356, allocations: 11.98 kB / 449.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.895e-05/0.3356, allocations: 13 kB / 449.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.3357, allocations: 106.4 kB / 449.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004889/0.3362, allocations: 421.3 kB / 450.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003419/0.3396, allocations: 2.311 MB / 452.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.3397, allocations: 40.94 kB / 452.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.3398, allocations: 55.98 kB / 452.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.3412, allocations: 0.7343 MB / 453.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3412, allocations: 0 / 453.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.148e-05/0.3413, allocations: 23.98 kB / 453.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.3413, allocations: 19.98 kB / 453.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.3429, allocations: 0.8202 MB / 454.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005102/0.348, allocations: 2.871 MB / 457.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3491, allocations: 0.5215 MB / 457.8 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009479/0.3501, allocations: 0.5701 MB / 458.3 MB, free: 5.496 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02406/0.3741, allocations: 13.73 MB / 472.1 MB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007879/0.3749, allocations: 365.7 kB / 472.4 MB, free: 7.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.3749, allocations: 0 / 472.4 MB, free: 7.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002247/0.3772, allocations: 1.114 MB / 473.5 MB, free: 5.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.3772, allocations: 55.41 kB / 473.6 MB, free: 5.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003467/0.3807, allocations: 2.956 MB / 476.5 MB, free: 2.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.64e-05/0.3807, allocations: 33.7 kB / 476.6 MB, free: 2.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.3821, allocations: 1.506 MB / 478.1 MB, free: 1.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.3823, allocations: 170.6 kB / 478.2 MB, free: 1.137 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003258/0.3826, allocations: 234.3 kB / 478.5 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3828, allocations: 341.9 kB / 478.8 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/0.3833, allocations: 241.9 kB / 479 MB, free: 332 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008728/0.3842, allocations: 0.6056 MB / 479.7 MB, free: 15.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.3857, allocations: 0.8973 MB / 480.5 MB, free: 14.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.3857, allocations: 4 kB / 480.6 MB, free: 14.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002658/0.3884, allocations: 1.247 MB / 481.8 MB, free: 13.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.3884, allocations: 12 kB / 481.8 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001191/0.3885, allocations: 84.12 kB / 481.9 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/0.3885, allocations: 16 kB / 481.9 MB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006951/0.3892, allocations: 203.6 kB / 482.1 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.823e-05/0.3893, allocations: 27.92 kB / 482.1 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.3903, allocations: 111.3 kB / 482.2 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.3904, allocations: 67.94 kB / 482.3 MB, free: 12.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000793/0.3912, allocations: 433.5 kB / 482.7 MB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004335/0.3916, allocations: 409.5 kB / 483.1 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002569/0.3942, allocations: 1.201 MB / 484.3 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.3942, allocations: 4 kB / 484.3 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.3942, allocations: 0 / 484.3 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3942, allocations: 0 / 484.3 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003329/0.3976, allocations: 2.026 MB / 486.4 MB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001024/0.3977, allocations: 75.98 kB / 486.4 MB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.3981, allocations: 91.86 kB / 486.5 MB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.3981, allocations: 0 / 486.5 MB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.3982, allocations: 40.05 kB / 486.6 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3982, allocations: 0 / 486.6 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3982, allocations: 0 / 486.6 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.4005, allocations: 1.323 MB / 487.9 MB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007167/0.4012, allocations: 419.1 kB / 488.3 MB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002963/0.4015, allocations: 12 kB / 488.3 MB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006501/0.4021, allocations: 31.95 kB / 488.3 MB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.4023, allocations: 59.88 kB / 488.4 MB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.899e-05/0.4024, allocations: 43.98 kB / 488.4 MB, free: 6.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002545/0.4049, allocations: 1.924 MB / 490.4 MB, free: 4.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4049, allocations: 0 / 490.4 MB, free: 4.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001408/0.4063, allocations: 0.593 MB / 491 MB, free: 3.938 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003741/0.4101, allocations: 2.558 MB / 493.5 MB, free: 1.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.4117, allocations: 0.7788 MB / 494.3 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4117, allocations: 0 / 494.3 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007359/0.4124, allocations: 419 kB / 494.7 MB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.4142, allocations: 0.5142 MB / 495.2 MB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02538/0.4396, allocations: 16.54 MB / 0.4998 GB, free: 14.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.4408, allocations: 1.121 MB / 0.5009 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.4419, allocations: 361.3 kB / 0.5012 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/0.4432, allocations: 1.229 MB / 0.5024 GB, free: 11.77 MB / 430.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4432, allocations: 0 / 0.5024 GB, free: 11.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2914/0.7347, allocations: 64.45 MB / 0.5654 GB, free: 146.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.04/18.77, allocations: 4.203 kB / 0.5654 GB, free: 146.6 MB / 478.1 MB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 22.55650223302655]