Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001128/0.001128, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8729/0.8729, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.799e-05/1.974e-05, allocations: 7.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009181/0.0092, allocations: 12.41 MB / 336.9 MB, free: 3.434 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01793/0.02713, allocations: 17.91 MB / 354.8 MB, free: 1.453 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002637/0.02976, allocations: 138.5 kB / 355 MB, free: 1.316 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003058/0.03282, allocations: 1.137 MB / 356.1 MB, free: 176 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00675/0.03957, allocations: 2.432 MB / 358.5 MB, free: 13.72 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004224/0.0438, allocations: 1.433 MB / 360 MB, free: 12.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007865/0.05166, allocations: 6.777 MB / 366.7 MB, free: 5.48 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006827/0.05234, allocations: 265.8 kB / 367 MB, free: 5.195 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001897/0.05424, allocations: 1.574 MB / 368.6 MB, free: 3.617 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008496/0.05509, allocations: 0.7901 MB / 369.4 MB, free: 2.824 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.05522, allocations: 72 kB / 369.4 MB, free: 2.754 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002514/0.05773, allocations: 1.217 MB / 370.6 MB, free: 1.535 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.05792, allocations: 329.6 kB / 371 MB, free: 1.211 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006856/0.05861, allocations: 0.7398 MB / 371.7 MB, free: 480 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003491/0.0621, allocations: 3.76 MB / 375.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.0621, allocations: 0 / 375.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.06211, allocations: 0 / 375.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.443e-05/0.06214, allocations: 0 / 375.5 MB, free: 12.7 MB / 346.7 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.003346/0.06549, allocations: 3.687 MB / 379.2 MB, free: 8.949 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.06554, allocations: 11.98 kB / 379.2 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003688/0.06591, allocations: 102.5 kB / 379.3 MB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.06622, allocations: 413.4 kB / 379.7 MB, free: 8.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.06845, allocations: 2.299 MB / 382 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.06848, allocations: 37 kB / 382 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/0.06856, allocations: 51.94 kB / 382.1 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008846/0.06945, allocations: 0.7304 MB / 382.8 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.06946, allocations: 0 / 382.8 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.06951, allocations: 24 kB / 382.8 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.792e-05/0.06953, allocations: 19.98 kB / 382.8 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000955/0.07048, allocations: 0.8202 MB / 383.7 MB, free: 4.336 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003526/0.07401, allocations: 2.844 MB / 386.5 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006966/0.0747, allocations: 0.5125 MB / 387 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005862/0.07529, allocations: 0.5767 MB / 387.6 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/0.09143, allocations: 13.71 MB / 401.3 MB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005136/0.09194, allocations: 378 kB / 401.7 MB, free: 1.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.09194, allocations: 0 / 401.7 MB, free: 1.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001433/0.09337, allocations: 1.104 MB / 402.8 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.09341, allocations: 63.34 kB / 402.8 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.09593, allocations: 2.954 MB / 405.8 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.09597, allocations: 37.7 kB / 405.8 MB, free: 13.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008619/0.09683, allocations: 1.491 MB / 407.3 MB, free: 12.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.09695, allocations: 178.5 kB / 407.5 MB, free: 11.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004621/0.09741, allocations: 230.3 kB / 407.7 MB, free: 11.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.039e-05/0.0975, allocations: 341.9 kB / 408.1 MB, free: 11.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.09784, allocations: 237.9 kB / 408.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004787/0.09832, allocations: 0.5979 MB / 408.9 MB, free: 10.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008538/0.09918, allocations: 0.8945 MB / 409.8 MB, free: 9.324 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.09918, allocations: 8 kB / 409.8 MB, free: 9.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001318/0.1005, allocations: 1.244 MB / 411 MB, free: 8.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.1005, allocations: 16.2 kB / 411 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.709e-05/0.1006, allocations: 83.98 kB / 411.1 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.1006, allocations: 20 kB / 411.1 MB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004052/0.101, allocations: 199.6 kB / 411.3 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.101, allocations: 27.92 kB / 411.4 MB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006056/0.1016, allocations: 107.3 kB / 411.5 MB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.779e-05/0.1017, allocations: 68 kB / 411.5 MB, free: 7.559 MB / 378.7 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.0005373/0.1023, allocations: 429.5 kB / 412 MB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.1025, allocations: 401.4 kB / 412.3 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.1041, allocations: 1.195 MB / 413.5 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1041, allocations: 12 kB / 413.6 MB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1041, allocations: 3.984 kB / 413.6 MB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1041, allocations: 0 / 413.6 MB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.1066, allocations: 2.023 MB / 415.6 MB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.447e-05/0.1066, allocations: 68 kB / 415.6 MB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.1069, allocations: 87.92 kB / 415.7 MB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.1069, allocations: 7.938 kB / 415.7 MB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.1069, allocations: 31.98 kB / 415.8 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1069, allocations: 0 / 415.8 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1069, allocations: 8.062 kB / 415.8 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.1083, allocations: 1.316 MB / 417.1 MB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004998/0.1088, allocations: 415.2 kB / 417.5 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/0.109, allocations: 12 kB / 417.5 MB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.1093, allocations: 27.97 kB / 417.5 MB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.1094, allocations: 67.86 kB / 417.6 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.78e-05/0.1095, allocations: 36 kB / 417.6 MB, free: 1.332 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001726/0.1112, allocations: 1.903 MB / 419.5 MB, free: 15.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1112, allocations: 0 / 419.5 MB, free: 15.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001271/0.1125, allocations: 0.593 MB / 420.1 MB, free: 14.84 MB / 394.7 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.003979/0.1165, allocations: 2.599 MB / 422.7 MB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.118, allocations: 0.7756 MB / 423.5 MB, free: 11.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.118, allocations: 0 / 423.5 MB, free: 11.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006873/0.1187, allocations: 427.2 kB / 423.9 MB, free: 10.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002766/0.1215, allocations: 0.6037 MB / 424.5 MB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02906/0.1505, allocations: 16.37 MB / 440.9 MB, free: 9.453 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007023/0.1513, allocations: 1.113 MB / 442 MB, free: 8.309 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007597/0.152, allocations: 357.1 kB / 442.4 MB, free: 7.953 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/0.1531, allocations: 1.215 MB / 443.6 MB, free: 6.738 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/0.1531, allocations: 0 / 443.6 MB, free: 6.738 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2035/0.3566, allocations: 64.24 MB / 0.4959 GB, free: 66.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.036/9.392, allocations: 6.625 kB / 0.4959 GB, free: 66.24 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 11.601686785928905]