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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: 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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00072/0.00072, allocations: 96.44 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008706/0.0008706, allocations: 202.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002023/0.0002024, allocations: 11.98 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08919/0.0894, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1666/0.2561, allocations: 13.56 MB / 372.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01965/0.2758, allocations: 18.98 MB / 391.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.2775, allocations: 30.44 kB / 391.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002751/0.2802, allocations: 0.983 MB / 392.2 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00696/0.2872, allocations: 1.877 MB / 394.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004236/0.2915, allocations: 1.117 MB / 395.2 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01014/0.3016, allocations: 6.254 MB / 401.4 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000866/0.3025, allocations: 433.8 kB / 401.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.3042, allocations: 0.9756 MB / 402.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.3054, allocations: 1.054 MB / 403.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.3055, allocations: 42.16 kB / 403.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003952/0.3095, allocations: 1.338 MB / 405.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.3098, allocations: 285.3 kB / 405.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006544/0.3104, allocations: 0.6487 MB / 406.2 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00255/0.313, allocations: 2.871 MB / 409.1 MB, free: 9.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.313, allocations: 0 / 409.1 MB, free: 9.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.313, allocations: 0 / 409.1 MB, free: 9.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.812e-05/0.3131, allocations: 0 / 409.1 MB, free: 9.438 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.004348/0.3174, allocations: 3.381 MB / 412.4 MB, free: 5.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3175, allocations: 12.03 kB / 412.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003665/0.3178, allocations: 407 kB / 412.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003102/0.3209, allocations: 2.311 MB / 415.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.321, allocations: 40.98 kB / 415.2 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.3211, allocations: 51.91 kB / 415.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.3224, allocations: 0.746 MB / 416 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.3224, allocations: 3.984 kB / 416 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.705e-05/0.3225, allocations: 20 kB / 416 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.3225, allocations: 23.98 kB / 416 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.3241, allocations: 0.8554 MB / 416.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004523/0.3286, allocations: 3.13 MB / 420 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.3298, allocations: 0.6152 MB / 420.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.3308, allocations: 0.6729 MB / 421.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02679/0.3576, allocations: 30.79 MB / 452.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000736/0.3584, allocations: 377.7 kB / 452.5 MB, free: 9.508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.3584, allocations: 4 kB / 452.5 MB, free: 9.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002284/0.3607, allocations: 1.178 MB / 453.7 MB, free: 8.316 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.3608, allocations: 67.34 kB / 453.7 MB, free: 8.238 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004035/0.3648, allocations: 3.044 MB / 456.8 MB, free: 5.195 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.811e-05/0.3649, allocations: 37.7 kB / 456.8 MB, free: 5.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.3662, allocations: 1.576 MB / 458.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.3663, allocations: 161.7 kB / 458.5 MB, free: 3.406 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.644e-05/0.3664, allocations: 16 kB / 458.6 MB, free: 3.391 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3665, allocations: 341.9 kB / 458.9 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005505/0.367, allocations: 257.9 kB / 459.1 MB, free: 2.801 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007546/0.3678, allocations: 0.6254 MB / 459.8 MB, free: 2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006397/0.3685, allocations: 344.5 kB / 460.1 MB, free: 1.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3685, allocations: 4 kB / 460.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002045/0.3705, allocations: 1.28 MB / 461.4 MB, free: 376 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3706, allocations: 8 kB / 461.4 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/0.3707, allocations: 84.89 kB / 461.5 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.3707, allocations: 20 kB / 461.5 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006655/0.3714, allocations: 215.6 kB / 461.7 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-05/0.3714, allocations: 23.94 kB / 461.7 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.3725, allocations: 134.9 kB / 461.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.3726, allocations: 64 kB / 461.9 MB, free: 15.83 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006592/0.3733, allocations: 452.7 kB / 462.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003961/0.3737, allocations: 391.2 kB / 462.8 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002812/0.3765, allocations: 1.255 MB / 464 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3765, allocations: 4 kB / 464 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3766, allocations: 0 / 464 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.3766, allocations: 7.969 kB / 464 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00315/0.3797, allocations: 2.19 MB / 466.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.651e-05/0.3798, allocations: 72 kB / 466.3 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004408/0.3803, allocations: 107.4 kB / 466.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.3803, allocations: 4 kB / 466.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-05/0.3804, allocations: 35.98 kB / 466.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-06/0.3804, allocations: 7.953 kB / 466.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-06/0.3804, allocations: 0 / 466.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.3825, allocations: 1.376 MB / 467.8 MB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006959/0.3832, allocations: 491.9 kB / 468.3 MB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003466/0.3836, allocations: 12 kB / 468.3 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006889/0.3843, allocations: 44.02 kB / 468.3 MB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.3844, allocations: 67.83 kB / 468.4 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.517e-05/0.3845, allocations: 39.98 kB / 468.4 MB, free: 9.172 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002349/0.3868, allocations: 1.968 MB / 470.4 MB, free: 7.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3868, allocations: 4 kB / 470.4 MB, free: 7.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001285/0.3881, allocations: 0.5972 MB / 471 MB, free: 6.609 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/0.3892, allocations: 0.7305 MB / 471.7 MB, free: 5.871 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.3908, allocations: 0.8489 MB / 472.6 MB, free: 5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.3908, allocations: 0 / 472.6 MB, free: 5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008044/0.3916, allocations: 467.2 kB / 473.1 MB, free: 4.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002384/0.394, allocations: 0.6161 MB / 473.7 MB, free: 3.898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006967/0.401, allocations: 5.119 MB / 478.8 MB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.4022, allocations: 1.714 MB / 480.5 MB, free: 13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001319/0.4035, allocations: 361.3 kB / 480.9 MB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.4038, allocations: 147.4 kB / 481 MB, free: 12.49 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4038, allocations: 0 / 481 MB, free: 12.49 MB / 398.1 MB Notification: Performance of Templates: time 0.05145/0.4552, allocations: 29.9 MB / 0.4989 GB, free: 14.73 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches