Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001368/0.001368, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001496/0.001496, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.449/1.449, allocations: 230.5 MB / 257.4 MB, free: 7.727 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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 59.91 kB / 377.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2527, allocations: 53.42 MB / 431.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01664/0.2694, allocations: 12.89 MB / 444 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02615/0.2955, allocations: 17.97 MB / 462 MB, free: 7.434 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002736/0.2983, allocations: 134.5 kB / 462.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004292/0.3026, allocations: 1.16 MB / 463.3 MB, free: 6.137 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00853/0.3111, allocations: 2.401 MB / 465.7 MB, free: 3.715 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004989/0.3161, allocations: 1.414 MB / 467.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.3273, allocations: 6.735 MB / 473.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007452/0.3281, allocations: 262.2 kB / 474.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.3301, allocations: 1.182 MB / 475.3 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.3318, allocations: 1.098 MB / 476.4 MB, free: 8.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002339/0.3321, allocations: 72 kB / 476.4 MB, free: 8.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004802/0.3369, allocations: 1.21 MB / 477.7 MB, free: 7.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004494/0.3373, allocations: 337.5 kB / 478 MB, free: 7.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001533/0.3388, allocations: 1.055 MB / 479 MB, free: 6.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006702/0.3455, allocations: 4.04 MB / 483.1 MB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3455, allocations: 0 / 483.1 MB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3455, allocations: 0 / 483.1 MB, free: 2.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.671e-05/0.3456, allocations: 3.938 kB / 483.1 MB, free: 2.227 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.006933/0.3526, allocations: 3.89 MB / 487 MB, free: 14.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.3526, allocations: 11.98 kB / 487 MB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000173/0.3528, allocations: 102.5 kB / 487.1 MB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007036/0.3535, allocations: 433.3 kB / 487.5 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004432/0.3579, allocations: 2.345 MB / 489.9 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.605e-05/0.358, allocations: 37 kB / 489.9 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.3581, allocations: 55.94 kB / 489.9 MB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.3596, allocations: 0.7304 MB / 490.7 MB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3597, allocations: 0 / 490.7 MB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.851e-05/0.3597, allocations: 20 kB / 490.7 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/0.3597, allocations: 23.98 kB / 490.7 MB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.3615, allocations: 0.8163 MB / 491.5 MB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006108/0.3676, allocations: 2.906 MB / 494.4 MB, free: 6.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.3689, allocations: 0.5203 MB / 495 MB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.3699, allocations: 0.573 MB / 495.5 MB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02778/0.3977, allocations: 13.72 MB / 0.4973 GB, free: 7.422 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009084/0.3986, allocations: 369.6 kB / 0.4977 GB, free: 7.047 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.526e-06/0.3986, allocations: 0 / 0.4977 GB, free: 7.047 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002925/0.4015, allocations: 1.126 MB / 0.4988 GB, free: 5.918 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.4016, allocations: 63.33 kB / 0.4988 GB, free: 5.844 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004631/0.4062, allocations: 3.106 MB / 0.5019 GB, free: 2.738 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.4064, allocations: 37.7 kB / 0.5019 GB, free: 2.695 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001677/0.408, allocations: 1.585 MB / 0.5034 GB, free: 1.102 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002617/0.4083, allocations: 178.6 kB / 0.5036 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003423/0.4086, allocations: 226.4 kB / 0.5038 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.4088, allocations: 341.9 kB / 0.5042 GB, free: 368 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006433/0.4095, allocations: 237.9 kB / 0.5044 GB, free: 128 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009963/0.4105, allocations: 0.6096 MB / 0.505 GB, free: 15.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001731/0.4122, allocations: 0.9051 MB / 0.5059 GB, free: 14.26 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.4122, allocations: 4 kB / 0.5059 GB, free: 14.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002704/0.4149, allocations: 1.259 MB / 0.5071 GB, free: 12.99 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.4149, allocations: 12 kB / 0.5071 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001403/0.4151, allocations: 83.98 kB / 0.5072 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.312e-05/0.4151, allocations: 16 kB / 0.5072 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007747/0.4159, allocations: 199.7 kB / 0.5074 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.857e-05/0.4159, allocations: 27.86 kB / 0.5074 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.4171, allocations: 119.3 kB / 0.5075 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.4172, allocations: 64 kB / 0.5076 GB, free: 12.48 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.0009354/0.4181, allocations: 457.3 kB / 0.508 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005364/0.4187, allocations: 421.3 kB / 0.5084 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00289/0.4215, allocations: 1.211 MB / 0.5096 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.507e-06/0.4216, allocations: 4 kB / 0.5096 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4216, allocations: 0 / 0.5096 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.4216, allocations: 3.984 kB / 0.5096 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.4259, allocations: 2.064 MB / 0.5116 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001159/0.426, allocations: 71.98 kB / 0.5117 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004979/0.4265, allocations: 87.86 kB / 0.5118 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/0.4265, allocations: 4 kB / 0.5118 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.648e-05/0.4265, allocations: 32 kB / 0.5118 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.155e-06/0.4266, allocations: 12.05 kB / 0.5118 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4266, allocations: 4 kB / 0.5118 GB, free: 8.051 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.4292, allocations: 1.347 MB / 0.5132 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.4303, allocations: 439 kB / 0.5136 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003064/0.4306, allocations: 12 kB / 0.5136 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007117/0.4313, allocations: 31.95 kB / 0.5136 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.4315, allocations: 59.88 kB / 0.5137 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-05/0.4315, allocations: 39.98 kB / 0.5137 GB, free: 6.109 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00315/0.4347, allocations: 2.01 MB / 0.5157 GB, free: 4.105 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4347, allocations: 4.062 kB / 0.5157 GB, free: 4.102 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001583/0.4363, allocations: 0.6047 MB / 0.5163 GB, free: 3.496 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.004283/0.4406, allocations: 2.57 MB / 0.5188 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.4424, allocations: 0.7749 MB / 0.5195 GB, free: 92 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4424, allocations: 384 / 0.5195 GB, free: 92 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008585/0.4432, allocations: 430.9 kB / 0.5199 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.4463, allocations: 0.6346 MB / 0.5206 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2137/0.6599, allocations: 17.04 MB / 0.5372 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.661, allocations: 1.159 MB / 0.5383 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00116/0.6622, allocations: 361 kB / 0.5387 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.6632, allocations: 1.265 MB / 0.5399 GB, free: 103.5 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6632, allocations: 1.375 kB / 0.5399 GB, free: 103.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09987/0.7631, allocations: 66.5 MB / 0.6049 GB, free: 41.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.87/16.63, allocations: 7.922 kB / 0.6049 GB, free: 41.84 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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: 19.83667685976252]