Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8706/0.8706, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.823e-05/1.948e-05, allocations: 3.688 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008811/0.008831, allocations: 12.38 MB / 330.8 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01731/0.02615, allocations: 17.86 MB / 348.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002106/0.02825, allocations: 134.5 kB / 348.8 MB, free: 7.852 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.03081, allocations: 1.153 MB / 350 MB, free: 6.691 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006958/0.03777, allocations: 2.421 MB / 352.4 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003854/0.04162, allocations: 1.445 MB / 353.8 MB, free: 2.801 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007693/0.04931, allocations: 6.695 MB / 360.5 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000662/0.04998, allocations: 261.8 kB / 360.8 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002021/0.052, allocations: 1.566 MB / 362.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008499/0.05285, allocations: 0.79 MB / 363.1 MB, free: 9.434 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.05299, allocations: 76 kB / 363.2 MB, free: 9.359 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00306/0.05605, allocations: 1.213 MB / 364.4 MB, free: 8.145 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002685/0.05632, allocations: 333.5 kB / 364.7 MB, free: 7.816 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009905/0.05731, allocations: 0.7437 MB / 365.5 MB, free: 7.07 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004454/0.06176, allocations: 3.745 MB / 369.2 MB, free: 3.312 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.06177, allocations: 3.938 kB / 369.2 MB, free: 3.309 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.06177, allocations: 0 / 369.2 MB, free: 3.309 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.884e-05/0.06184, allocations: 0 / 369.2 MB, free: 3.309 MB / 330.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.003483/0.06532, allocations: 3.691 MB / 372.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.06537, allocations: 8.922 kB / 372.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.335e-05/0.06546, allocations: 102.5 kB / 373 MB, free: 15.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003095/0.06577, allocations: 417.4 kB / 373.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002239/0.06801, allocations: 2.291 MB / 375.7 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.06804, allocations: 37 kB / 375.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.113e-05/0.06813, allocations: 55.89 kB / 375.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008789/0.06901, allocations: 0.7343 MB / 376.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.06902, allocations: 0 / 376.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.643e-05/0.06907, allocations: 20 kB / 376.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.06908, allocations: 23.98 kB / 376.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009703/0.07006, allocations: 0.8163 MB / 377.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00331/0.07336, allocations: 2.844 MB / 380.3 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007236/0.07409, allocations: 0.5242 MB / 380.8 MB, free: 7.504 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005904/0.07468, allocations: 0.5614 MB / 381.3 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01529/0.08997, allocations: 13.68 MB / 395 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005015/0.09047, allocations: 373.7 kB / 395.4 MB, free: 8.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.09047, allocations: 0 / 395.4 MB, free: 8.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001412/0.09188, allocations: 1.108 MB / 396.5 MB, free: 7.379 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.09193, allocations: 59.39 kB / 396.6 MB, free: 7.309 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/0.09455, allocations: 2.954 MB / 399.5 MB, free: 4.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.09459, allocations: 33.7 kB / 399.5 MB, free: 4.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008767/0.09547, allocations: 1.498 MB / 401 MB, free: 2.797 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.09559, allocations: 174.5 kB / 401.2 MB, free: 2.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.09581, allocations: 230.3 kB / 401.4 MB, free: 2.395 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.0959, allocations: 338 kB / 401.8 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/0.09626, allocations: 245.8 kB / 402 MB, free: 1.816 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/0.09676, allocations: 0.6017 MB / 402.6 MB, free: 1.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009234/0.09768, allocations: 0.9024 MB / 403.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.09769, allocations: 7.828 kB / 403.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001585/0.09927, allocations: 1.244 MB / 404.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.0993, allocations: 12 kB / 404.8 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.039e-05/0.09937, allocations: 80 kB / 404.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.09939, allocations: 16 kB / 404.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.0998, allocations: 203.6 kB / 405.1 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.09982, allocations: 23.92 kB / 405.1 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006145/0.1004, allocations: 115.4 kB / 405.2 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.619e-05/0.1005, allocations: 64 kB / 405.3 MB, free: 14.2 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.0006055/0.1011, allocations: 433.5 kB / 405.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.1014, allocations: 405.4 kB / 406.1 MB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001618/0.103, allocations: 1.187 MB / 407.3 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.103, allocations: 4 kB / 407.3 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.103, allocations: 0 / 407.3 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.103, allocations: 4 kB / 407.3 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.1053, allocations: 2.026 MB / 409.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.529e-05/0.1053, allocations: 79.98 kB / 409.4 MB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/0.1056, allocations: 87.86 kB / 409.5 MB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.1056, allocations: 0 / 409.5 MB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.1056, allocations: 32.06 kB / 409.5 MB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1056, allocations: 11.94 kB / 409.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1057, allocations: 3.938 kB / 409.5 MB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.107, allocations: 1.317 MB / 410.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005795/0.1076, allocations: 427.1 kB / 411.2 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/0.1078, allocations: 8 kB / 411.3 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.1082, allocations: 35.95 kB / 411.3 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.1083, allocations: 55.94 kB / 411.3 MB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.559e-05/0.1083, allocations: 39.98 kB / 411.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001991/0.1103, allocations: 1.903 MB / 413.3 MB, free: 6.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1103, allocations: 4.062 kB / 413.3 MB, free: 6.059 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001017/0.1114, allocations: 0.5814 MB / 413.9 MB, free: 5.477 MB / 378.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.002466/0.1138, allocations: 2.594 MB / 416.5 MB, free: 2.852 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.1149, allocations: 0.7867 MB / 417.3 MB, free: 2.035 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1149, allocations: 4.125 kB / 417.3 MB, free: 2.031 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004419/0.1153, allocations: 423.3 kB / 417.7 MB, free: 1.594 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/0.1168, allocations: 0.6183 MB / 418.3 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01809/0.1349, allocations: 16.35 MB / 434.6 MB, free: 88 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006867/0.1356, allocations: 1.109 MB / 435.8 MB, free: 14.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007551/0.1364, allocations: 357.2 kB / 436.1 MB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008486/0.1372, allocations: 1.215 MB / 437.3 MB, free: 13.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/0.1372, allocations: 0 / 437.3 MB, free: 13.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2054/0.3426, allocations: 64.21 MB / 0.4898 GB, free: 80.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.279/9.622, allocations: 16.89 kB / 0.4898 GB, free: 80.45 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.80978041421622]