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.001294/0.001294, allocations: 121.3 kB / 17.99 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 63.73 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07446/0.07554, allocations: 50.53 MB / 357.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1406/0.2161, allocations: 15.16 MB / 372.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01655/0.2327, allocations: 20.62 MB / 393.4 MB, free: 164 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.2344, allocations: 34.38 kB / 393.4 MB, free: 148 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002928/0.2374, allocations: 1.098 MB / 394.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006556/0.244, allocations: 2.016 MB / 396.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004056/0.248, allocations: 1.255 MB / 397.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008572/0.2566, allocations: 6.745 MB / 404.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006509/0.2573, allocations: 480 kB / 405 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.2586, allocations: 1.124 MB / 406.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009172/0.2596, allocations: 1.142 MB / 407.3 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.2597, allocations: 75.22 kB / 407.4 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003625/0.2633, allocations: 1.492 MB / 408.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.2636, allocations: 341.5 kB / 409.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001083/0.2647, allocations: 1.436 MB / 410.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002396/0.2671, allocations: 2.968 MB / 413.6 MB, free: 3.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2671, allocations: 0 / 413.6 MB, free: 3.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2671, allocations: 4 kB / 413.6 MB, free: 3.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.145e-05/0.2672, allocations: 4 kB / 413.6 MB, free: 3.812 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.004245/0.2714, allocations: 3.826 MB / 417.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.2715, allocations: 8.031 kB / 417.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003642/0.2718, allocations: 414.9 kB / 417.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002869/0.2747, allocations: 2.498 MB / 420.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/0.2747, allocations: 37 kB / 420.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.2749, allocations: 52.86 kB / 420.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.2761, allocations: 0.7304 MB / 421.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.2761, allocations: 3.938 kB / 421.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.519e-05/0.2762, allocations: 27.88 kB / 421.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.2762, allocations: 23.98 kB / 421.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.2776, allocations: 0.8124 MB / 422 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004222/0.2818, allocations: 3.102 MB / 425.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.2829, allocations: 0.5752 MB / 425.7 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008526/0.2838, allocations: 0.6516 MB / 426.4 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02599/0.3098, allocations: 30.77 MB / 457.1 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007362/0.3105, allocations: 365.6 kB / 457.5 MB, free: 3.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.366e-06/0.3106, allocations: 0 / 457.5 MB, free: 3.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002474/0.313, allocations: 1.112 MB / 458.6 MB, free: 2.293 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.3131, allocations: 59.41 kB / 458.7 MB, free: 2.223 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004613/0.3177, allocations: 3.09 MB / 461.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.101e-05/0.3178, allocations: 33.69 kB / 461.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001299/0.3191, allocations: 1.58 MB / 463.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.3193, allocations: 161.7 kB / 463.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003208/0.3196, allocations: 226.1 kB / 463.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3198, allocations: 341.9 kB / 464.1 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.3203, allocations: 241.9 kB / 464.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008034/0.3211, allocations: 0.602 MB / 464.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.3225, allocations: 0.8974 MB / 465.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.3225, allocations: 7.938 kB / 465.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002126/0.3246, allocations: 1.245 MB / 467.1 MB, free: 9.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.3247, allocations: 15.98 kB / 467.1 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001094/0.3248, allocations: 80 kB / 467.2 MB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.3248, allocations: 16 kB / 467.2 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.3255, allocations: 204.3 kB / 467.4 MB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-05/0.3255, allocations: 27.92 kB / 467.4 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009238/0.3265, allocations: 107 kB / 467.5 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-05/0.3266, allocations: 64 kB / 467.6 MB, free: 8.926 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.0007145/0.3273, allocations: 464.6 kB / 468 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003538/0.3277, allocations: 399.1 kB / 468.4 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002707/0.3304, allocations: 1.218 MB / 469.6 MB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3304, allocations: 4 kB / 469.6 MB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3304, allocations: 0 / 469.6 MB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.3304, allocations: 3.984 kB / 469.6 MB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.3335, allocations: 2.147 MB / 471.8 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.535e-05/0.3336, allocations: 68 kB / 471.8 MB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004871/0.3341, allocations: 87.92 kB / 471.9 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.3341, allocations: 7.984 kB / 471.9 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-05/0.3342, allocations: 31.94 kB / 472 MB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3342, allocations: 0 / 472 MB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3342, allocations: 4 kB / 472 MB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.3363, allocations: 1.325 MB / 473.3 MB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006546/0.337, allocations: 488.1 kB / 473.8 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002872/0.3373, allocations: 19.67 kB / 473.8 MB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006409/0.3379, allocations: 23.97 kB / 473.8 MB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.3381, allocations: 71.94 kB / 473.9 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-05/0.3382, allocations: 43.88 kB / 473.9 MB, free: 2.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002598/0.3408, allocations: 2.007 MB / 475.9 MB, free: 428 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3408, allocations: 0 / 475.9 MB, free: 428 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001443/0.3422, allocations: 0.5972 MB / 476.5 MB, free: 15.82 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.00111/0.3434, allocations: 0.7655 MB / 477.3 MB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.3451, allocations: 0.8256 MB / 478.1 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3451, allocations: 0 / 478.1 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007322/0.3458, allocations: 443 kB / 478.6 MB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.3485, allocations: 0.6541 MB / 479.2 MB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006461/0.3549, allocations: 5.47 MB / 484.7 MB, free: 7.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.3561, allocations: 1.702 MB / 486.4 MB, free: 5.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.3564, allocations: 159.4 kB / 486.5 MB, free: 5.684 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3564, allocations: 4 kB / 486.5 MB, free: 5.68 MB / 398.1 MB Notification: Performance of Templates: time 0.05519/0.4116, allocations: 38.45 MB / 0.5127 GB, free: 15.3 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "" 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