Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 101 kB / 16.5 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001834/0.001835, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 241.1 MB, free: 13.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009378/0.0009378, allocations: 47.03 kB / 299.9 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08387/0.08482, allocations: 49.45 MB / 349.4 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01311/0.09798, allocations: 15.16 MB / 364.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1717/0.2697, allocations: 20.95 MB / 385.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.2712, allocations: 30.28 kB / 385.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00283/0.2741, allocations: 1.101 MB / 386.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006453/0.2805, allocations: 1.954 MB / 388.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00452/0.2851, allocations: 1.211 MB / 389.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009457/0.2945, allocations: 6.487 MB / 396.3 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006135/0.2952, allocations: 442.1 kB / 396.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.2967, allocations: 1.083 MB / 397.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009669/0.2977, allocations: 1.127 MB / 398.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001851/0.2979, allocations: 49.5 kB / 399 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003999/0.3019, allocations: 1.46 MB / 400.4 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.3021, allocations: 319 kB / 400.7 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001172/0.3033, allocations: 1.403 MB / 402.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004239/0.3076, allocations: 3.875 MB / 406 MB, free: 12.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3076, allocations: 3.938 kB / 406 MB, free: 12.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3076, allocations: 0 / 406 MB, free: 12.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.3076, allocations: 0 / 406 MB, free: 12.57 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.004916/0.3126, allocations: 3.834 MB / 409.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3126, allocations: 8.031 kB / 409.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003817/0.313, allocations: 410.9 kB / 410.3 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/0.3161, allocations: 2.495 MB / 412.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.3161, allocations: 39.38 kB / 412.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.3163, allocations: 59.91 kB / 412.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.3176, allocations: 0.7304 MB / 413.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.3176, allocations: 0 / 413.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-05/0.3177, allocations: 20 kB / 413.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.996e-05/0.3177, allocations: 19.98 kB / 413.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.3193, allocations: 0.8202 MB / 414.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00464/0.3239, allocations: 3.102 MB / 417.6 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.3251, allocations: 0.5712 MB / 418.1 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009761/0.3261, allocations: 0.6477 MB / 418.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02619/0.3523, allocations: 30.14 MB / 448.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007303/0.353, allocations: 365.4 kB / 449.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.3531, allocations: 3.938 kB / 449.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002141/0.3552, allocations: 1.108 MB / 450.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3553, allocations: 55.41 kB / 450.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003479/0.3587, allocations: 3.09 MB / 453.5 MB, free: 8.676 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.3588, allocations: 37.7 kB / 453.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.36, allocations: 1.569 MB / 455.1 MB, free: 7.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.3601, allocations: 169.7 kB / 455.3 MB, free: 6.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/0.3604, allocations: 230.1 kB / 455.5 MB, free: 6.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3606, allocations: 341.9 kB / 455.9 MB, free: 6.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005802/0.3611, allocations: 241.8 kB / 456.1 MB, free: 6.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000783/0.3619, allocations: 0.6136 MB / 456.7 MB, free: 5.297 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.3633, allocations: 0.8974 MB / 457.6 MB, free: 4.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3633, allocations: 4 kB / 457.6 MB, free: 4.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002123/0.3654, allocations: 1.245 MB / 458.9 MB, free: 2.977 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.3655, allocations: 11.94 kB / 458.9 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/0.3657, allocations: 83.94 kB / 458.9 MB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.3657, allocations: 20 kB / 459 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000688/0.3664, allocations: 200 kB / 459.2 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.188e-05/0.3664, allocations: 31.86 kB / 459.2 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008828/0.3673, allocations: 103.1 kB / 459.3 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.3674, allocations: 64 kB / 459.4 MB, free: 2.473 MB / 366.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.0006812/0.3681, allocations: 445.5 kB / 459.8 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003353/0.3685, allocations: 403 kB / 460.2 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002777/0.3712, allocations: 1.219 MB / 461.4 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.3713, allocations: 8 kB / 461.4 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3713, allocations: 0 / 461.4 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.3713, allocations: 3.984 kB / 461.4 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003388/0.3747, allocations: 2.147 MB / 463.6 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.815e-05/0.3748, allocations: 68 kB / 463.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.3752, allocations: 99.91 kB / 463.7 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3753, allocations: 0 / 463.7 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.555e-05/0.3753, allocations: 35.94 kB / 463.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.3753, allocations: 4 kB / 463.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3753, allocations: 0 / 463.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0022/0.3775, allocations: 1.325 MB / 465.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007055/0.3783, allocations: 496.1 kB / 465.6 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003005/0.3786, allocations: 8 kB / 465.6 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000713/0.3793, allocations: 31.97 kB / 465.6 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3795, allocations: 55.94 kB / 465.7 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.365e-05/0.3795, allocations: 39.98 kB / 465.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002559/0.3821, allocations: 2.007 MB / 467.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3821, allocations: 4 kB / 467.7 MB, free: 9.961 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001335/0.3835, allocations: 0.5972 MB / 468.3 MB, free: 9.363 MB / 382.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.001112/0.3846, allocations: 0.7772 MB / 469.1 MB, free: 8.578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.3862, allocations: 0.8176 MB / 469.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3862, allocations: 0 / 469.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/0.387, allocations: 439 kB / 470.3 MB, free: 7.281 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002427/0.3894, allocations: 0.6056 MB / 470.9 MB, free: 6.672 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006441/0.3959, allocations: 5.397 MB / 476.3 MB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.397, allocations: 1.71 MB / 478.1 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.3982, allocations: 361.3 kB / 478.4 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.3984, allocations: 147.4 kB / 478.5 MB, free: 14.99 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3984, allocations: 0 / 478.5 MB, free: 14.99 MB / 398.1 MB Notification: Performance of Templates: time 0.04921/0.4476, allocations: 30.91 MB / 0.4975 GB, free: 380 kB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches