Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.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.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00119/0.00119, allocations: 114.3 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 206.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 64.11 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2198, allocations: 50.54 MB / 410 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.006029/0.2258, allocations: 5.089 MB / 415.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.2282, allocations: 1.593 MB / 416.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003023/0.2286, allocations: 19.88 kB / 416.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.2289, allocations: 146.5 kB / 416.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004557/0.2294, allocations: 214.1 kB / 417 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007898/0.2302, allocations: 411.3 kB / 417.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009866/0.2312, allocations: 1.095 MB / 418.5 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005806/0.2318, allocations: 422.4 kB / 418.9 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004457/0.2322, allocations: 402.4 kB / 419.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004329/0.2327, allocations: 438 kB / 419.8 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.2328, allocations: 104 kB / 419.9 MB, free: 7.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.233, allocations: 120 kB / 420 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.2332, allocations: 215.3 kB / 420.2 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003984/0.2336, allocations: 477.5 kB / 420.7 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.2347, allocations: 1.148 MB / 421.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2347, allocations: 0 / 421.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2347, allocations: 7.938 kB / 421.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.2347, allocations: 4 kB / 421.8 MB, free: 5.676 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.002166/0.2369, allocations: 1.258 MB / 423.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.2369, allocations: 11.97 kB / 423.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006265/0.2376, allocations: 160.2 kB / 423.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.2386, allocations: 0.6227 MB / 423.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.725e-05/0.2387, allocations: 58.36 kB / 423.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.2388, allocations: 72.38 kB / 424 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.2401, allocations: 0.7657 MB / 424.8 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.2401, allocations: 0 / 424.8 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.198e-05/0.2402, allocations: 28 kB / 424.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.2402, allocations: 16 kB / 424.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.2414, allocations: 0.5633 MB / 425.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003737/0.2452, allocations: 2.634 MB / 428 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.2464, allocations: 0.5891 MB / 428.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000561/0.247, allocations: 294.4 kB / 428.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.059e-05/0.247, allocations: 12.55 kB / 428.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007955/0.2478, allocations: 453 kB / 429.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.184e-06/0.2478, allocations: 0 / 429.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.003185/0.251, allocations: 1.218 MB / 430.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.2511, allocations: 119.4 kB / 430.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006618/0.2518, allocations: 0.5744 MB / 431.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.573e-05/0.2519, allocations: 45.7 kB / 431.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000252/0.2521, allocations: 361 kB / 431.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.2523, allocations: 214.3 kB / 431.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.2525, allocations: 138.5 kB / 432 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2527, allocations: 378.8 kB / 432.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005483/0.2532, allocations: 240.7 kB / 432.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006514/0.2539, allocations: 414.1 kB / 433 MB, free: 10.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.255, allocations: 0.6349 MB / 433.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.2551, allocations: 8 kB / 433.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001566/0.2566, allocations: 0.8447 MB / 434.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.2567, allocations: 37.69 kB / 434.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.2567, allocations: 8 kB / 434.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004745/0.2572, allocations: 152.7 kB / 434.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004681/0.2577, allocations: 115.8 kB / 434.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.2606, allocations: 2.551 MB / 437.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004897/0.2611, allocations: 87.58 kB / 437.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/0.2611, allocations: 31.98 kB / 437.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006735/0.2618, allocations: 382 kB / 437.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005963/0.2624, allocations: 406.1 kB / 438.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001003/0.2634, allocations: 0.6193 MB / 438.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.478e-06/0.2634, allocations: 4 kB / 438.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization_lambda0): time 0.001486/0.2649, allocations: 0.8252 MB / 439.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.265, allocations: 45.62 kB / 439.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.265, allocations: 4 kB / 439.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003941/0.2654, allocations: 156.9 kB / 439.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.2658, allocations: 107.8 kB / 440 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002792/0.2686, allocations: 2.548 MB / 442.5 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/0.2691, allocations: 79.78 kB / 442.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.2692, allocations: 32 kB / 442.6 MB, free: 15.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,inverter.diode_n.off,inverter.transistor_n.off,inverter.diode_p.off,inverter.transistor_p.off,inverter.andCondition_n.y,inverter.andCondition_p.y,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002182/0.2694, allocations: 239.8 kB / 442.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.877e-05/0.2695, allocations: 75.53 kB / 442.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.2711, allocations: 0.7607 MB / 443.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.2712, allocations: 7.984 kB / 443.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2712, allocations: 0 / 443.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/0.2714, allocations: 212.4 kB / 443.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.526e-05/0.2715, allocations: 24.06 kB / 443.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/0.272, allocations: 47.95 kB / 444 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.2721, allocations: 56.56 kB / 444.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002029/0.2741, allocations: 0.8458 MB / 444.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001889/0.276, allocations: 1.12 MB / 446 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005242/0.2766, allocations: 272.3 kB / 446.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004409/0.277, allocations: 407 kB / 446.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of Backend: time 4e-07/0.277, allocations: 0 / 446.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002469/0.2795, allocations: 1.36 MB / 448 MB, free: 10.37 MB / 366.1 MB Notification: Performance of SimCode: time 0.002148/0.2817, allocations: 1.86 MB / 449.9 MB, free: 8.457 MB / 366.1 MB Notification: Performance of Templates: time 0.02177/0.3035, allocations: 13.75 MB / 463.6 MB, free: 10.85 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches