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.00161/0.00161, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001617/0.001617, allocations: 188.5 kB / 24.49 MB, free: 3.945 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.343/1.343, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.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.001478/0.001478, allocations: 39.94 kB / 371.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2757, allocations: 52.18 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01373/0.2894, allocations: 12.39 MB / 435.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02178/0.3112, allocations: 17.85 MB / 453.6 MB, free: 28 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002161/0.3133, allocations: 134.7 kB / 453.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003078/0.3164, allocations: 1.135 MB / 454.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007344/0.3237, allocations: 2.347 MB / 457.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005168/0.3289, allocations: 1.414 MB / 458.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.3399, allocations: 6.525 MB / 465.1 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007113/0.3407, allocations: 265.7 kB / 465.4 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.3425, allocations: 1.159 MB / 466.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001448/0.3439, allocations: 1.106 MB / 467.7 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000204/0.3441, allocations: 76 kB / 467.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003745/0.3479, allocations: 1.237 MB / 469 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004414/0.3483, allocations: 329.6 kB / 469.3 MB, free: 228 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.3498, allocations: 1.013 MB / 470.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005628/0.3554, allocations: 3.826 MB / 474.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.3554, allocations: 4 kB / 474.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3554, allocations: 0 / 474.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.089e-05/0.3555, allocations: 0 / 474.1 MB, free: 11.36 MB / 382.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.005888/0.3614, allocations: 3.738 MB / 477.9 MB, free: 7.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.3614, allocations: 8.031 kB / 477.9 MB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.177e-05/0.3615, allocations: 13 kB / 477.9 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001271/0.3616, allocations: 98.5 kB / 478 MB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005345/0.3621, allocations: 417.4 kB / 478.4 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003581/0.3657, allocations: 2.291 MB / 480.7 MB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/0.3657, allocations: 37 kB / 480.7 MB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3659, allocations: 59.94 kB / 480.8 MB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.3673, allocations: 0.7343 MB / 481.5 MB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.3673, allocations: 0 / 481.5 MB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.69e-05/0.3674, allocations: 16 kB / 481.5 MB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.909e-05/0.3674, allocations: 23.98 kB / 481.6 MB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.369, allocations: 0.8163 MB / 482.4 MB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005347/0.3743, allocations: 2.848 MB / 485.2 MB, free: 20 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.3755, allocations: 0.5203 MB / 485.7 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009688/0.3765, allocations: 0.5692 MB / 486.3 MB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02455/0.401, allocations: 13.69 MB / 0.4883 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007548/0.4018, allocations: 373.6 kB / 0.4886 GB, free: 476 kB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.196e-06/0.4018, allocations: 0 / 0.4886 GB, free: 476 kB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002192/0.404, allocations: 1.103 MB / 0.4897 GB, free: 15.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.404, allocations: 63.41 kB / 0.4898 GB, free: 15.28 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003397/0.4074, allocations: 2.931 MB / 0.4926 GB, free: 12.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.4075, allocations: 33.7 kB / 0.4927 GB, free: 12.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.4088, allocations: 1.502 MB / 0.4941 GB, free: 10.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/0.409, allocations: 178.5 kB / 0.4943 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003152/0.4093, allocations: 230.4 kB / 0.4945 GB, free: 10.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4094, allocations: 341.9 kB / 0.4949 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005701/0.41, allocations: 249.7 kB / 0.4951 GB, free: 9.801 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008543/0.4109, allocations: 0.6018 MB / 0.4957 GB, free: 9.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.4123, allocations: 0.8935 MB / 0.4966 GB, free: 7.953 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.4123, allocations: 8 kB / 0.4966 GB, free: 7.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002051/0.4144, allocations: 1.246 MB / 0.4978 GB, free: 6.688 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.4144, allocations: 16.95 kB / 0.4978 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.4145, allocations: 80 kB / 0.4979 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-05/0.4145, allocations: 20 kB / 0.4979 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006838/0.4152, allocations: 199.7 kB / 0.4981 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.496e-05/0.4153, allocations: 27.86 kB / 0.4981 GB, free: 6.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008489/0.4161, allocations: 107.3 kB / 0.4982 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.4162, allocations: 64 kB / 0.4983 GB, free: 6.184 MB / 414.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.0006402/0.4169, allocations: 441.4 kB / 0.4987 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.4172, allocations: 397.5 kB / 0.4991 GB, free: 5.352 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002429/0.4196, allocations: 1.19 MB / 0.5002 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.4197, allocations: 4 kB / 0.5002 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4197, allocations: 3.984 kB / 0.5002 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4197, allocations: 4 kB / 0.5002 GB, free: 4.148 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003034/0.4227, allocations: 2.01 MB / 0.5022 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.232e-05/0.4228, allocations: 76 kB / 0.5023 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004517/0.4232, allocations: 95.86 kB / 0.5024 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4232, allocations: 0 / 0.5024 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-05/0.4233, allocations: 35.98 kB / 0.5024 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.4233, allocations: 4 kB / 0.5024 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/0.4233, allocations: 3.938 kB / 0.5024 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002169/0.4255, allocations: 1.314 MB / 0.5037 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006934/0.4262, allocations: 423.2 kB / 0.5041 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.4264, allocations: 12 kB / 0.5041 GB, free: 96 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006309/0.4271, allocations: 31.97 kB / 0.5041 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.4272, allocations: 63.86 kB / 0.5042 GB, free: 0 / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.4273, allocations: 36.05 kB / 0.5042 GB, free: 15.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00245/0.4298, allocations: 1.907 MB / 0.5061 GB, free: 14.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4298, allocations: 0 / 0.5061 GB, free: 14.06 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001241/0.431, allocations: 0.5852 MB / 0.5067 GB, free: 13.47 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.003645/0.4347, allocations: 2.546 MB / 0.5092 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.4363, allocations: 0.7778 MB / 0.5099 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4363, allocations: 0 / 0.5099 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007291/0.437, allocations: 436.5 kB / 0.5103 GB, free: 9.637 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.4392, allocations: 0.6114 MB / 0.5109 GB, free: 9.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02441/0.4636, allocations: 16.45 MB / 0.527 GB, free: 8.043 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.4648, allocations: 1.109 MB / 0.5281 GB, free: 6.902 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.4658, allocations: 357.1 kB / 0.5284 GB, free: 6.547 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/0.4672, allocations: 1.214 MB / 0.5296 GB, free: 5.332 MB / 446.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4672, allocations: 0 / 0.5296 GB, free: 5.332 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2977/0.7649, allocations: 64.08 MB / 0.5922 GB, free: 61.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.08/18.85, allocations: 4.062 kB / 0.5922 GB, free: 61.96 MB / 446.1 MB " [Timeout remaining time 641] (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: 22.619245305890217]