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.001355/0.001355, allocations: 108.6 kB / 18.49 MB, free: 4.543 MB / 14.72 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.001479/0.001479, allocations: 197 kB / 21.43 MB, free: 1.609 MB / 14.72 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 1.466/1.466, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 51.94 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 52.15 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01493/0.1217, allocations: 14.75 MB / 433.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2349/0.3566, allocations: 20.73 MB / 454 MB, free: 6.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002406/0.359, allocations: 133.9 kB / 454.1 MB, free: 6.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003067/0.362, allocations: 1.246 MB / 455.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007914/0.37, allocations: 2.322 MB / 457.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005309/0.3753, allocations: 1.446 MB / 459.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0116/0.3869, allocations: 6.508 MB / 465.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009209/0.3878, allocations: 267.4 kB / 465.9 MB, free: 4.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002578/0.3904, allocations: 1.145 MB / 467 MB, free: 4.293 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001977/0.3923, allocations: 1.113 MB / 468.1 MB, free: 3.852 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002926/0.3926, allocations: 74.84 kB / 468.2 MB, free: 3.852 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005311/0.3979, allocations: 1.474 MB / 469.7 MB, free: 3.785 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007246/0.3987, allocations: 334 kB / 470 MB, free: 3.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.4015, allocations: 1.37 MB / 471.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008061/0.4096, allocations: 3.789 MB / 475.2 MB, free: 1.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.4096, allocations: 0 / 475.2 MB, free: 1.441 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4096, allocations: 5.156 kB / 475.2 MB, free: 1.438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000128/0.4097, allocations: 0 / 475.2 MB, free: 1.438 MB / 366.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.007472/0.4172, allocations: 3.803 MB / 479 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.4172, allocations: 9.344 kB / 479 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.45e-05/0.4173, allocations: 14.91 kB / 479 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.4174, allocations: 102.4 kB / 479.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007105/0.4181, allocations: 414.5 kB / 479.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004431/0.4225, allocations: 2.444 MB / 481.9 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.615e-05/0.4226, allocations: 37.14 kB / 482 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.4228, allocations: 62.2 kB / 482 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.4243, allocations: 0.7283 MB / 482.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4243, allocations: 0 / 482.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.4244, allocations: 21.77 kB / 482.8 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.92e-05/0.4244, allocations: 23.14 kB / 482.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.426, allocations: 0.8189 MB / 483.6 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006496/0.4325, allocations: 3.063 MB / 486.7 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.4337, allocations: 0.5143 MB / 487.2 MB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009616/0.4347, allocations: 0.5625 MB / 487.8 MB, free: 9.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03161/0.4663, allocations: 30.12 MB / 0.5058 GB, free: 8.691 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007977/0.4671, allocations: 357.7 kB / 0.5061 GB, free: 8.332 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.846e-06/0.4671, allocations: 0 / 0.5061 GB, free: 8.332 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002719/0.4698, allocations: 1.117 MB / 0.5072 GB, free: 7.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/0.4699, allocations: 63.34 kB / 0.5072 GB, free: 7.133 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003981/0.4738, allocations: 2.931 MB / 0.5101 GB, free: 4.191 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.985e-05/0.4739, allocations: 37.69 kB / 0.5101 GB, free: 4.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/0.4753, allocations: 1.49 MB / 0.5116 GB, free: 2.652 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.4755, allocations: 174.2 kB / 0.5118 GB, free: 2.484 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/0.4758, allocations: 238.3 kB / 0.512 GB, free: 2.246 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4759, allocations: 334 kB / 0.5123 GB, free: 1.914 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/0.4765, allocations: 245.8 kB / 0.5125 GB, free: 1.672 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008996/0.4774, allocations: 0.602 MB / 0.5131 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.479, allocations: 0.8965 MB / 0.514 GB, free: 15.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.479, allocations: 4 kB / 0.514 GB, free: 15.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00257/0.4816, allocations: 1.251 MB / 0.5152 GB, free: 14.58 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.4816, allocations: 11.94 kB / 0.5152 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.4817, allocations: 80 kB / 0.5153 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.823e-05/0.4818, allocations: 23.98 kB / 0.5153 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007222/0.4825, allocations: 196.2 kB / 0.5155 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.426e-05/0.4825, allocations: 27.92 kB / 0.5156 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.484, allocations: 112 kB / 0.5157 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.4841, allocations: 67.98 kB / 0.5157 GB, free: 14.07 MB / 430.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.0008422/0.4849, allocations: 430.1 kB / 0.5161 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005251/0.4854, allocations: 405.4 kB / 0.5165 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.4884, allocations: 1.197 MB / 0.5177 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.4884, allocations: 4 kB / 0.5177 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.4884, allocations: 3.938 kB / 0.5177 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.4884, allocations: 7.922 kB / 0.5177 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004063/0.4924, allocations: 2.1 MB / 0.5198 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.736e-05/0.4925, allocations: 72 kB / 0.5198 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.493, allocations: 95.86 kB / 0.5199 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.271e-06/0.4931, allocations: 0 / 0.5199 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7e-05/0.4931, allocations: 35.98 kB / 0.52 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.4931, allocations: 4 kB / 0.52 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4931, allocations: 0 / 0.52 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.4958, allocations: 1.318 MB / 0.5212 GB, free: 8.336 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.497, allocations: 494.4 kB / 0.5217 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/0.4973, allocations: 12 kB / 0.5217 GB, free: 7.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007072/0.498, allocations: 31.95 kB / 0.5218 GB, free: 7.789 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.4982, allocations: 63.89 kB / 0.5218 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.133e-05/0.4983, allocations: 39.98 kB / 0.5219 GB, free: 7.688 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002828/0.5011, allocations: 1.899 MB / 0.5237 GB, free: 5.789 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5011, allocations: 0 / 0.5237 GB, free: 5.789 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001768/0.5028, allocations: 0.593 MB / 0.5243 GB, free: 5.195 MB / 430.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.004058/0.5069, allocations: 2.549 MB / 0.5268 GB, free: 2.762 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001754/0.5087, allocations: 0.7748 MB / 0.5275 GB, free: 1.961 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5087, allocations: 0 / 0.5275 GB, free: 1.961 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007971/0.5095, allocations: 423 kB / 0.5279 GB, free: 1.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/0.5126, allocations: 0.614 MB / 0.5285 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02796/0.5406, allocations: 16.46 MB / 0.5446 GB, free: 15.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.5418, allocations: 1.661 MB / 0.5462 GB, free: 14.26 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001177/0.543, allocations: 361.1 kB / 0.5466 GB, free: 13.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001353/0.5443, allocations: 1.214 MB / 0.5478 GB, free: 12.69 MB / 462.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5443, allocations: 4 kB / 0.5478 GB, free: 12.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1133/0.6577, allocations: 61.06 MB / 0.6074 GB, free: 0 / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.4/16.06, allocations: 8.469 kB / 0.6074 GB, free: 15.99 MB / 0.5137 GB " [Timeout remaining time 644] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.011329631961416]