Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001526/0.001526, allocations: 105.8 kB / 18.3 MB, free: 4.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001605/0.001605, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.438/1.438, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 61 kB / 307.9 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.1012, allocations: 50.53 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.18/0.2814, allocations: 14.71 MB / 373.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02192/0.3033, allocations: 20.72 MB / 393.8 MB, free: 20 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002607/0.306, allocations: 34.84 kB / 393.9 MB, free: 4 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00419/0.3102, allocations: 1.222 MB / 395.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009415/0.3197, allocations: 2.31 MB / 397.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005865/0.3256, allocations: 1.442 MB / 398.8 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01198/0.3376, allocations: 6.535 MB / 405.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008806/0.3385, allocations: 462.5 kB / 405.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.3406, allocations: 1.057 MB / 406.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001431/0.342, allocations: 1.106 MB / 408 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002201/0.3423, allocations: 76.88 kB / 408.1 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005508/0.3478, allocations: 1.48 MB / 409.6 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005601/0.3484, allocations: 333.6 kB / 409.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002339/0.3507, allocations: 1.382 MB / 411.3 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006681/0.3574, allocations: 3.74 MB / 415 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3574, allocations: 0 / 415 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3575, allocations: 0 / 415 MB, free: 2.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.081e-05/0.3575, allocations: 0 / 415 MB, free: 2.598 MB / 318.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.005312/0.3628, allocations: 3.682 MB / 418.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3629, allocations: 8.031 kB / 418.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004622/0.3633, allocations: 403.1 kB / 419.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003436/0.3668, allocations: 2.437 MB / 421.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3668, allocations: 38.36 kB / 421.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.367, allocations: 55.91 kB / 421.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.3683, allocations: 0.7265 MB / 422.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3684, allocations: 3.938 kB / 422.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.277e-05/0.3684, allocations: 20 kB / 422.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.3685, allocations: 23.98 kB / 422.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.3703, allocations: 0.8124 MB / 423.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005228/0.3756, allocations: 3.059 MB / 426.3 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.3769, allocations: 0.5751 MB / 426.8 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.378, allocations: 0.6437 MB / 427.5 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03613/0.4141, allocations: 30.76 MB / 458.2 MB, free: 2.844 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008765/0.415, allocations: 361.5 kB / 458.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.286e-06/0.415, allocations: 0 / 458.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002619/0.4177, allocations: 1.097 MB / 459.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.4177, allocations: 55.41 kB / 459.7 MB, free: 1.305 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004622/0.4224, allocations: 2.939 MB / 462.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.4225, allocations: 33.7 kB / 462.7 MB, free: 14.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001651/0.4242, allocations: 1.485 MB / 464.2 MB, free: 12.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.4244, allocations: 165.7 kB / 464.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003792/0.4248, allocations: 226.1 kB / 464.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.4251, allocations: 341.9 kB / 464.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006885/0.4258, allocations: 249.8 kB / 465.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009786/0.4268, allocations: 0.602 MB / 465.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.4285, allocations: 0.8896 MB / 466.6 MB, free: 10 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.4286, allocations: 7.938 kB / 466.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002737/0.4313, allocations: 1.23 MB / 467.9 MB, free: 8.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.4314, allocations: 12 kB / 467.9 MB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001299/0.4315, allocations: 88.11 kB / 468 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.533e-05/0.4315, allocations: 16 kB / 468 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007627/0.4323, allocations: 195.7 kB / 468.2 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.887e-05/0.4323, allocations: 23.88 kB / 468.2 MB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.4335, allocations: 119 kB / 468.3 MB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.4336, allocations: 64 kB / 468.4 MB, free: 8.25 MB / 382.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.0009338/0.4346, allocations: 441.3 kB / 468.8 MB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006242/0.4352, allocations: 379.4 kB / 469.2 MB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/0.4384, allocations: 1.192 MB / 470.4 MB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.4385, allocations: 4 kB / 470.4 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.4385, allocations: 0 / 470.4 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.4385, allocations: 3.984 kB / 470.4 MB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.4423, allocations: 2.093 MB / 472.5 MB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001073/0.4424, allocations: 68 kB / 472.6 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005112/0.4429, allocations: 91.86 kB / 472.6 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/0.4429, allocations: 4 kB / 472.6 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.253e-05/0.443, allocations: 39.98 kB / 472.7 MB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.443, allocations: 1.125 kB / 472.7 MB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.443, allocations: 4 kB / 472.7 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002619/0.4456, allocations: 1.293 MB / 474 MB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009002/0.4466, allocations: 480.2 kB / 474.5 MB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002895/0.4469, allocations: 12 kB / 474.5 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006435/0.4475, allocations: 36.02 kB / 474.5 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.4477, allocations: 63.83 kB / 474.6 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.96e-05/0.4478, allocations: 39.98 kB / 474.6 MB, free: 1.895 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002937/0.4507, allocations: 1.907 MB / 476.5 MB, free: 15.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4507, allocations: 0 / 476.5 MB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001577/0.4523, allocations: 0.5816 MB / 477.1 MB, free: 15.41 MB / 398.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.001229/0.4536, allocations: 0.7785 MB / 477.9 MB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001941/0.4555, allocations: 0.8293 MB / 478.7 MB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.4555, allocations: 0 / 478.7 MB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008677/0.4564, allocations: 451.1 kB / 479.1 MB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/0.4594, allocations: 0.6151 MB / 479.8 MB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007664/0.4671, allocations: 4.431 MB / 484.2 MB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/0.4685, allocations: 1.668 MB / 485.9 MB, free: 6.512 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003948/0.4689, allocations: 151.4 kB / 486 MB, free: 6.363 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4689, allocations: 7.938 kB / 486 MB, free: 6.355 MB / 398.1 MB Notification: Performance of Templates: time 0.06407/0.533, allocations: 37.38 MB / 0.5111 GB, free: 1.09 MB / 430.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp1.S.v,mp2.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,time,v.p.v