Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002207/0.002207, allocations: 176.9 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.4 MB / 222.9 MB, free: 8.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007254/0.0007254, allocations: 86.36 kB / 271.2 MB, free: 8.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003172, allocations: 12 kB / 327.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2366, allocations: 47.57 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005389/0.242, allocations: 6.776 MB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01467/0.2567, allocations: 16.78 MB / 398.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.2579, allocations: 31.75 kB / 398.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002126/0.26, allocations: 0.6965 MB / 399.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005101/0.2651, allocations: 1.382 MB / 400.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003647/0.2688, allocations: 1.003 MB / 401.8 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004141/0.273, allocations: 2.977 MB / 404.7 MB, free: 18.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.2733, allocations: 209.1 kB / 404.9 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004586/0.2738, allocations: 445.8 kB / 405.4 MB, free: 18.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003844/0.2742, allocations: 0.4971 MB / 405.9 MB, free: 17.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.898e-05/0.2743, allocations: 24 kB / 405.9 MB, free: 17.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002807/0.2771, allocations: 1.066 MB / 407 MB, free: 16.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.2772, allocations: 143 kB / 407.1 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004647/0.2777, allocations: 0.6464 MB / 407.7 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.2789, allocations: 1.577 MB / 409.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2789, allocations: 0 / 409.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2789, allocations: 0 / 409.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.2789, allocations: 0 / 409.3 MB, free: 14.33 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002164/0.2811, allocations: 1.803 MB / 411.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2811, allocations: 8.031 kB / 411.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.2813, allocations: 193.7 kB / 411.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.2828, allocations: 1.37 MB / 412.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.2828, allocations: 16.56 kB / 412.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.901e-05/0.2829, allocations: 31.91 kB / 412.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007941/0.2837, allocations: 453.1 kB / 413.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.2837, allocations: 7.938 kB / 413.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/0.2838, allocations: 12 kB / 413.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.2838, allocations: 15.98 kB / 413.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009383/0.2847, allocations: 0.5059 MB / 413.7 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.287, allocations: 1.638 MB / 415.4 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008272/0.2878, allocations: 415.4 kB / 415.8 MB, free: 7.672 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006309/0.2885, allocations: 425.9 kB / 416.2 MB, free: 7.254 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.3014, allocations: 15.25 MB / 431.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006273/0.3021, allocations: 280 kB / 431.7 MB, free: 5.645 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.224e-06/0.3021, allocations: 0 / 431.7 MB, free: 5.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002072/0.3042, allocations: 0.9044 MB / 432.6 MB, free: 4.711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.3043, allocations: 67.33 kB / 432.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00173/0.306, allocations: 1.448 MB / 434.1 MB, free: 3.148 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.306, allocations: 33.7 kB / 434.2 MB, free: 3.109 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000557/0.3066, allocations: 0.7188 MB / 434.9 MB, free: 2.387 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.035e-05/0.3067, allocations: 90.73 kB / 435 MB, free: 2.297 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.057e-05/0.3067, allocations: 12 kB / 435 MB, free: 2.285 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3068, allocations: 322 kB / 435.3 MB, free: 1.965 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.3073, allocations: 188.9 kB / 435.5 MB, free: 1.777 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005508/0.3079, allocations: 387.4 kB / 435.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.3089, allocations: 0.5801 MB / 436.4 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3089, allocations: 4 kB / 436.4 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001417/0.3103, allocations: 0.8019 MB / 437.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3104, allocations: 8 kB / 437.3 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.775e-05/0.3104, allocations: 36 kB / 437.3 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003155/0.3107, allocations: 140.8 kB / 437.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003985/0.3111, allocations: 120 kB / 437.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005853/0.3118, allocations: 0.6695 MB / 438.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005085/0.3123, allocations: 91.45 kB / 438.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.3124, allocations: 32 kB / 438.3 MB, free: 14.7 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000397/0.3128, allocations: 276.1 kB / 438.6 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3129, allocations: 189.7 kB / 438.8 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.3148, allocations: 0.7816 MB / 439.6 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3149, allocations: 4 kB / 439.6 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3149, allocations: 0 / 439.6 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3149, allocations: 3.984 kB / 439.6 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.317, allocations: 1.35 MB / 440.9 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.597e-05/0.317, allocations: 40.06 kB / 441 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002477/0.3173, allocations: 55.95 kB / 441 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002226/0.3175, allocations: 128.8 kB / 441.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.3176, allocations: 23.88 kB / 441.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000536/0.3181, allocations: 0.6694 MB / 441.8 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3181, allocations: 0 / 441.8 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.3194, allocations: 0.7638 MB / 442.6 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003274/0.3197, allocations: 278.7 kB / 442.9 MB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.3199, allocations: 8 kB / 442.9 MB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004056/0.3203, allocations: 39.95 kB / 442.9 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.3204, allocations: 47.89 kB / 443 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.254e-05/0.3205, allocations: 23.94 kB / 443 MB, free: 9.867 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001122/0.3216, allocations: 0.9497 MB / 443.9 MB, free: 8.898 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3216, allocations: 0 / 443.9 MB, free: 8.898 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008052/0.3224, allocations: 327.8 kB / 444.3 MB, free: 8.578 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000815/0.3232, allocations: 0.5738 MB / 444.8 MB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.3245, allocations: 0.5513 MB / 445.4 MB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3245, allocations: 0 / 445.4 MB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006379/0.3251, allocations: 315.4 kB / 445.7 MB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3262, allocations: 239 kB / 445.9 MB, free: 6.875 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.3295, allocations: 2.572 MB / 448.5 MB, free: 4.254 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006844/0.3302, allocations: 1.16 MB / 449.7 MB, free: 3.062 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.3303, allocations: 91.44 kB / 449.8 MB, free: 2.973 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3303, allocations: 0 / 449.8 MB, free: 2.973 MB / 330.7 MB Notification: Performance of Templates: time 0.03118/0.3615, allocations: 25.7 MB / 475.5 MB, free: 9.262 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time