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.001335/0.001335, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 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.001677/0.001677, allocations: 213.9 kB / 23.74 MB, free: 4.66 MB / 14.72 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 1.442/1.442, allocations: 230.5 MB / 257.4 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001928/0.001928, allocations: 71.88 kB / 377.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2462, allocations: 53.4 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01536/0.2616, allocations: 14.79 MB / 446 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02703/0.2886, allocations: 20.79 MB / 466.7 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002268/0.2909, allocations: 134.6 kB / 466.9 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00375/0.2946, allocations: 1.238 MB / 468.1 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008312/0.3029, allocations: 2.37 MB / 470.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004982/0.3079, allocations: 1.461 MB / 471.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.319, allocations: 6.603 MB / 478.6 MB, free: 7.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007042/0.3197, allocations: 277.7 kB / 478.8 MB, free: 6.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.3216, allocations: 1.155 MB / 480 MB, free: 5.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.3234, allocations: 1.106 MB / 481.1 MB, free: 4.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.3236, allocations: 72 kB / 481.2 MB, free: 4.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004099/0.3277, allocations: 1.475 MB / 482.6 MB, free: 3.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000444/0.3282, allocations: 333.5 kB / 483 MB, free: 2.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001749/0.3299, allocations: 1.37 MB / 484.3 MB, free: 1.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006292/0.3362, allocations: 3.799 MB / 488.1 MB, free: 13.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3362, allocations: 4 kB / 488.1 MB, free: 13.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3362, allocations: 0 / 488.1 MB, free: 13.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.626e-05/0.3363, allocations: 0 / 488.1 MB, free: 13.48 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.006077/0.3424, allocations: 3.73 MB / 491.9 MB, free: 9.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3424, allocations: 8.031 kB / 491.9 MB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001386/0.3426, allocations: 94.52 kB / 492 MB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004916/0.3431, allocations: 413.4 kB / 492.4 MB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00401/0.3471, allocations: 2.299 MB / 494.7 MB, free: 6.777 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.914e-05/0.3471, allocations: 41 kB / 494.7 MB, free: 6.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.3472, allocations: 51.98 kB / 494.8 MB, free: 6.684 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.3487, allocations: 0.7343 MB / 495.5 MB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.3487, allocations: 3.938 kB / 495.5 MB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.3488, allocations: 16 kB / 495.5 MB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.658e-05/0.3488, allocations: 23.98 kB / 495.5 MB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.3504, allocations: 0.8163 MB / 496.3 MB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005905/0.3563, allocations: 3 MB / 499.3 MB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.3575, allocations: 0.5164 MB / 499.9 MB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009645/0.3585, allocations: 0.5692 MB / 0.4887 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02636/0.3848, allocations: 13.79 MB / 0.5022 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007547/0.3856, allocations: 361.7 kB / 0.5025 GB, free: 2.367 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.3856, allocations: 0 / 0.5025 GB, free: 2.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002315/0.3879, allocations: 1.107 MB / 0.5036 GB, free: 1.258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.3879, allocations: 55.41 kB / 0.5037 GB, free: 1.191 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004051/0.392, allocations: 2.947 MB / 0.5065 GB, free: 14.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.3921, allocations: 33.7 kB / 0.5066 GB, free: 14.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/0.3936, allocations: 1.498 MB / 0.508 GB, free: 12.69 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/0.3938, allocations: 170.6 kB / 0.5082 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000314/0.3941, allocations: 226.4 kB / 0.5084 GB, free: 12.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3943, allocations: 345.9 kB / 0.5087 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006102/0.3949, allocations: 245.8 kB / 0.509 GB, free: 11.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008791/0.3958, allocations: 0.5979 MB / 0.5096 GB, free: 10.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.3974, allocations: 0.8973 MB / 0.5104 GB, free: 9.859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.3974, allocations: 4 kB / 0.5104 GB, free: 9.855 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002411/0.3998, allocations: 1.247 MB / 0.5116 GB, free: 8.602 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.3998, allocations: 12 kB / 0.5117 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001186/0.3999, allocations: 80 kB / 0.5117 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.553e-05/0.4, allocations: 16 kB / 0.5118 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007112/0.4007, allocations: 203.6 kB / 0.5119 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.873e-05/0.4007, allocations: 24.17 kB / 0.512 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009557/0.4017, allocations: 115.3 kB / 0.5121 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.4018, allocations: 64 kB / 0.5121 GB, free: 8.098 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.0008144/0.4026, allocations: 436.5 kB / 0.5126 GB, free: 7.664 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004258/0.403, allocations: 401.5 kB / 0.5129 GB, free: 7.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002607/0.4056, allocations: 1.194 MB / 0.5141 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.4056, allocations: 7.984 kB / 0.5141 GB, free: 6.062 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4056, allocations: 3.938 kB / 0.5141 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.4056, allocations: 0 / 0.5141 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.4091, allocations: 2.084 MB / 0.5162 GB, free: 3.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001031/0.4092, allocations: 68 kB / 0.5162 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004793/0.4097, allocations: 91.97 kB / 0.5163 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.4097, allocations: 4 kB / 0.5163 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-05/0.4098, allocations: 35.94 kB / 0.5163 GB, free: 3.715 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.4098, allocations: 0 / 0.5163 GB, free: 3.715 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4098, allocations: 4 kB / 0.5163 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.4121, allocations: 1.311 MB / 0.5176 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008569/0.4129, allocations: 423.1 kB / 0.518 GB, free: 1.961 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/0.4132, allocations: 8 kB / 0.518 GB, free: 1.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000637/0.4138, allocations: 31.95 kB / 0.5181 GB, free: 1.922 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.414, allocations: 63.88 kB / 0.5181 GB, free: 1.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.571e-05/0.4141, allocations: 43.92 kB / 0.5182 GB, free: 1.816 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002655/0.4167, allocations: 1.903 MB / 0.52 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4167, allocations: 4.062 kB / 0.52 GB, free: 15.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001327/0.418, allocations: 0.5891 MB / 0.5206 GB, free: 15.32 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.003713/0.4218, allocations: 2.538 MB / 0.5231 GB, free: 12.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.4234, allocations: 0.7745 MB / 0.5238 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4234, allocations: 0 / 0.5238 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007837/0.4242, allocations: 431.8 kB / 0.5243 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/0.4267, allocations: 0.6114 MB / 0.5249 GB, free: 10.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2249/0.6516, allocations: 16.45 MB / 0.5409 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.6528, allocations: 1.663 MB / 0.5425 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009785/0.6538, allocations: 363.8 kB / 0.5429 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008741/0.6546, allocations: 1.21 MB / 0.5441 GB, free: 99.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6546, allocations: 0 / 0.5441 GB, free: 99.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/0.7592, allocations: 61.68 MB / 0.6043 GB, free: 43.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19/19.76, allocations: 15.95 kB / 0.6043 GB, free: 43.25 MB / 446.1 MB " [Timeout remaining time 640] (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/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_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: 23.010349984979257]