Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001951/0.001951, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 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.002587/0.002587, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 47.92 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2675, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01607/0.2836, allocations: 14.78 MB / 445.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03025/0.3138, allocations: 20.78 MB / 466.7 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003813/0.3177, allocations: 138.5 kB / 466.8 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004634/0.3223, allocations: 1.25 MB / 468.1 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.3326, allocations: 2.366 MB / 470.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005596/0.3382, allocations: 1.457 MB / 471.9 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01141/0.3496, allocations: 6.599 MB / 478.5 MB, free: 7.297 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007452/0.3503, allocations: 277.7 kB / 478.8 MB, free: 6.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001918/0.3522, allocations: 1.147 MB / 479.9 MB, free: 5.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00151/0.3538, allocations: 1.106 MB / 481 MB, free: 4.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001718/0.3539, allocations: 79.94 kB / 481.1 MB, free: 4.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004427/0.3584, allocations: 1.475 MB / 482.6 MB, free: 3.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004464/0.3588, allocations: 333.6 kB / 482.9 MB, free: 2.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001876/0.3607, allocations: 1.378 MB / 484.3 MB, free: 1.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006357/0.367, allocations: 3.791 MB / 488.1 MB, free: 13.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.367, allocations: 0 / 488.1 MB, free: 13.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.367, allocations: 0 / 488.1 MB, free: 13.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.887e-05/0.3671, allocations: 0 / 488.1 MB, free: 13.65 MB / 398.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.006095/0.3732, allocations: 3.726 MB / 491.8 MB, free: 9.867 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.3732, allocations: 12.02 kB / 491.8 MB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3734, allocations: 94.52 kB / 491.9 MB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005553/0.3739, allocations: 413.4 kB / 492.3 MB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00387/0.3778, allocations: 2.307 MB / 494.6 MB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.28e-05/0.3779, allocations: 37 kB / 494.7 MB, free: 6.906 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.378, allocations: 48 kB / 494.7 MB, free: 6.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.3794, allocations: 0.7382 MB / 495.4 MB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.3795, allocations: 0 / 495.4 MB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/0.3795, allocations: 20 kB / 495.5 MB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.578e-05/0.3795, allocations: 23.98 kB / 495.5 MB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.3812, allocations: 0.8163 MB / 496.3 MB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00549/0.3867, allocations: 3 MB / 499.3 MB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.3879, allocations: 0.5202 MB / 499.8 MB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009776/0.3889, allocations: 0.5614 MB / 0.4887 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02664/0.4155, allocations: 13.79 MB / 0.5021 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007963/0.4163, allocations: 365.6 kB / 0.5025 GB, free: 2.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.4163, allocations: 0 / 0.5025 GB, free: 2.543 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00239/0.4187, allocations: 1.107 MB / 0.5035 GB, free: 1.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.4187, allocations: 55.41 kB / 0.5036 GB, free: 1.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003938/0.4227, allocations: 2.939 MB / 0.5065 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.862e-05/0.4228, allocations: 37.7 kB / 0.5065 GB, free: 14.37 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.4243, allocations: 1.495 MB / 0.508 GB, free: 12.87 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.4245, allocations: 178.5 kB / 0.5081 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000348/0.4248, allocations: 230.4 kB / 0.5084 GB, free: 12.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.425, allocations: 337.9 kB / 0.5087 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006814/0.4257, allocations: 241.9 kB / 0.5089 GB, free: 11.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009234/0.4266, allocations: 0.6017 MB / 0.5095 GB, free: 11.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.4282, allocations: 0.9012 MB / 0.5104 GB, free: 10.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.4282, allocations: 4 kB / 0.5104 GB, free: 10.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00222/0.4304, allocations: 1.243 MB / 0.5116 GB, free: 8.781 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.4304, allocations: 12 kB / 0.5116 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.4305, allocations: 87.98 kB / 0.5117 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.748e-05/0.4306, allocations: 16 kB / 0.5117 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007564/0.4313, allocations: 204.2 kB / 0.5119 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.413e-05/0.4314, allocations: 27.86 kB / 0.5119 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.4324, allocations: 107.3 kB / 0.512 GB, free: 8.336 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.4325, allocations: 64 kB / 0.5121 GB, free: 8.273 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.0007402/0.4332, allocations: 431.1 kB / 0.5125 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003862/0.4336, allocations: 405.4 kB / 0.5129 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002639/0.4363, allocations: 1.197 MB / 0.5141 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4363, allocations: 4 kB / 0.5141 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4363, allocations: 0 / 0.5141 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.4363, allocations: 7.984 kB / 0.5141 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003619/0.4399, allocations: 2.072 MB / 0.5161 GB, free: 4.094 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001109/0.44, allocations: 68.06 kB / 0.5162 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004717/0.4405, allocations: 91.86 kB / 0.5162 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/0.4405, allocations: 7.984 kB / 0.5163 GB, free: 3.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.943e-05/0.4406, allocations: 32 kB / 0.5163 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.4406, allocations: 4 kB / 0.5163 GB, free: 3.895 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4406, allocations: 0 / 0.5163 GB, free: 3.895 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.4429, allocations: 1.314 MB / 0.5176 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007692/0.4437, allocations: 423.2 kB / 0.518 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003569/0.444, allocations: 8 kB / 0.518 GB, free: 2.133 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.4452, allocations: 31.97 kB / 0.518 GB, free: 2.102 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.4454, allocations: 63.86 kB / 0.5181 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.4455, allocations: 36 kB / 0.5181 GB, free: 2.004 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003981/0.4495, allocations: 1.911 MB / 0.52 GB, free: 96 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4495, allocations: 0 / 0.52 GB, free: 96 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.00234/0.4518, allocations: 0.5891 MB / 0.5205 GB, free: 15.5 MB / 446.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.005781/0.4576, allocations: 2.55 MB / 0.523 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002452/0.4601, allocations: 0.7665 MB / 0.5238 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4601, allocations: 1.375 kB / 0.5238 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.4613, allocations: 438.9 kB / 0.5242 GB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003839/0.4651, allocations: 0.6114 MB / 0.5248 GB, free: 11.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2712/0.7363, allocations: 16.44 MB / 0.5409 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.7375, allocations: 1.665 MB / 0.5425 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009746/0.7385, allocations: 358 kB / 0.5428 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009069/0.7394, allocations: 1.216 MB / 0.544 GB, free: 99.68 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.7394, allocations: 3.406 kB / 0.544 GB, free: 99.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/0.8418, allocations: 61.7 MB / 0.6043 GB, free: 43.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.91/19.75, allocations: 14.95 kB / 0.6043 GB, free: 43.57 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 23.236043154029176]