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.001364/0.001364, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001684/0.001684, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.447/1.447, allocations: 207.7 MB / 235.3 MB, free: 9.797 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",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.00186/0.00186, allocations: 55.92 kB / 347.2 MB, free: 9.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2512, allocations: 49.15 MB / 396.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009864/0.2611, allocations: 11.83 MB / 408.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02308/0.2842, allocations: 17.04 MB / 425.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00275/0.2869, allocations: 138.1 kB / 425.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003387/0.2903, allocations: 1.106 MB / 426.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008766/0.2991, allocations: 2.309 MB / 428.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006274/0.3054, allocations: 1.362 MB / 430.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.317, allocations: 6.39 MB / 436.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006692/0.3177, allocations: 261.7 kB / 436.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001841/0.3195, allocations: 1.05 MB / 437.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001528/0.3211, allocations: 1.048 MB / 438.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.3213, allocations: 76 kB / 438.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004312/0.3256, allocations: 1.078 MB / 440 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004277/0.3261, allocations: 329.6 kB / 440.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001297/0.3274, allocations: 1.021 MB / 441.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006807/0.3342, allocations: 3.854 MB / 445.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3342, allocations: 0 / 445.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3342, allocations: 0 / 445.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.199e-05/0.3342, allocations: 0 / 445.2 MB, free: 2.086 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.005809/0.34, allocations: 3.758 MB / 449 MB, free: 14.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3401, allocations: 19.98 kB / 449 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000125/0.3402, allocations: 90.52 kB / 449.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004871/0.3407, allocations: 425.3 kB / 449.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003779/0.3445, allocations: 2.311 MB / 451.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.3445, allocations: 37 kB / 451.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.3446, allocations: 51.95 kB / 451.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.3461, allocations: 0.7343 MB / 452.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3461, allocations: 4 kB / 452.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.88e-05/0.3462, allocations: 20 kB / 452.6 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.3462, allocations: 23.92 kB / 452.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.3479, allocations: 0.8202 MB / 453.5 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005336/0.3532, allocations: 2.86 MB / 456.4 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.3545, allocations: 0.5203 MB / 456.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3555, allocations: 0.5701 MB / 457.4 MB, free: 5.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02707/0.3826, allocations: 13.74 MB / 471.2 MB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008408/0.3834, allocations: 361.6 kB / 471.5 MB, free: 7.102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.3834, allocations: 0 / 471.5 MB, free: 7.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002366/0.3858, allocations: 1.11 MB / 472.6 MB, free: 5.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.3858, allocations: 63.41 kB / 472.7 MB, free: 5.914 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00405/0.3899, allocations: 2.971 MB / 475.7 MB, free: 2.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.39, allocations: 33.7 kB / 475.7 MB, free: 2.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.3915, allocations: 1.51 MB / 477.2 MB, free: 1.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.3917, allocations: 174.6 kB / 477.4 MB, free: 1.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/0.392, allocations: 234.4 kB / 477.6 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3922, allocations: 337.9 kB / 477.9 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006159/0.3928, allocations: 237.9 kB / 478.2 MB, free: 412 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009411/0.3937, allocations: 0.6057 MB / 478.8 MB, free: 15.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.3953, allocations: 0.8974 MB / 479.7 MB, free: 14.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/0.3953, allocations: 7.938 kB / 479.7 MB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00234/0.3976, allocations: 1.243 MB / 480.9 MB, free: 13.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.3977, allocations: 8 kB / 480.9 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000125/0.3978, allocations: 87.98 kB / 481 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.962e-05/0.3978, allocations: 16 kB / 481 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007312/0.3985, allocations: 200.1 kB / 481.2 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/0.3986, allocations: 27.92 kB / 481.3 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.3996, allocations: 115.3 kB / 481.4 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.3997, allocations: 67.98 kB / 481.4 MB, free: 12.77 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.0007861/0.4005, allocations: 437.4 kB / 481.9 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004618/0.401, allocations: 401.5 kB / 482.3 MB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/0.4037, allocations: 1.205 MB / 483.5 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.4037, allocations: 8 kB / 483.5 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4037, allocations: 0 / 483.5 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4037, allocations: 3.984 kB / 483.5 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003629/0.4073, allocations: 2.026 MB / 485.5 MB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001123/0.4074, allocations: 68 kB / 485.6 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/0.4079, allocations: 95.97 kB / 485.7 MB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.4079, allocations: 4 kB / 485.7 MB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/0.408, allocations: 32 kB / 485.7 MB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/0.408, allocations: 7.938 kB / 485.7 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.408, allocations: 0 / 485.7 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/0.4105, allocations: 1.311 MB / 487 MB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009783/0.4114, allocations: 431.1 kB / 487.4 MB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/0.4117, allocations: 8.062 kB / 487.4 MB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006905/0.4124, allocations: 31.97 kB / 487.5 MB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.4126, allocations: 67.86 kB / 487.5 MB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.6e-05/0.4127, allocations: 36 kB / 487.6 MB, free: 6.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002825/0.4155, allocations: 1.92 MB / 489.5 MB, free: 4.602 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4155, allocations: 3.938 kB / 489.5 MB, free: 4.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001437/0.4169, allocations: 0.593 MB / 490.1 MB, free: 4.004 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.003958/0.4209, allocations: 2.546 MB / 492.6 MB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00177/0.4227, allocations: 0.778 MB / 493.4 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.4227, allocations: 4 kB / 493.4 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008099/0.4235, allocations: 428 kB / 493.8 MB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/0.4255, allocations: 0.514 MB / 494.4 MB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02816/0.4537, allocations: 16.54 MB / 0.4989 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.4548, allocations: 1.118 MB / 0.5 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001148/0.456, allocations: 361.3 kB / 0.5004 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/0.4574, allocations: 1.222 MB / 0.5016 GB, free: 11.85 MB / 430.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4574, allocations: 0 / 0.5016 GB, free: 11.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.307/0.7644, allocations: 64.61 MB / 0.5647 GB, free: 149.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/16.03, allocations: 4.406 kB / 0.5647 GB, free: 149.3 MB / 478.1 MB " [Timeout remaining time 644] (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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.274052007123828]