Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 113.9 kB / 17.73 MB, free: 5.234 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.002168/0.002168, allocations: 187.1 kB / 18.66 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 51.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09876, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00561/0.1044, allocations: 3.923 MB / 379.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2132/0.3176, allocations: 1.336 MB / 380.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004608/0.3182, allocations: 9.688 kB / 380.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008261/0.319, allocations: 261.3 kB / 380.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006276/0.3196, allocations: 255.7 kB / 380.9 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007758/0.3204, allocations: 266 kB / 381.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008191/0.3213, allocations: 0.711 MB / 381.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003391/0.3216, allocations: 167.3 kB / 382.1 MB, free: 9.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005147/0.3221, allocations: 285.7 kB / 382.3 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.3226, allocations: 305 kB / 382.6 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.3227, allocations: 50.28 kB / 382.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002853/0.323, allocations: 94.64 kB / 382.8 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.3232, allocations: 141.9 kB / 382.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.3234, allocations: 304.2 kB / 383.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008569/0.3243, allocations: 0.7066 MB / 383.9 MB, free: 9.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3243, allocations: 1.688 kB / 383.9 MB, free: 9.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3243, allocations: 0 / 383.9 MB, free: 9.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3243, allocations: 0 / 383.9 MB, free: 9.098 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001597/0.3259, allocations: 0.9398 MB / 384.9 MB, free: 8.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.326, allocations: 14.5 kB / 384.9 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.3261, allocations: 66.31 kB / 384.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005272/0.3267, allocations: 413 kB / 385.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.3267, allocations: 30.55 kB / 385.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-05/0.3268, allocations: 37.75 kB / 385.4 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007965/0.3276, allocations: 448.4 kB / 385.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.3276, allocations: 0 / 385.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.368e-05/0.3277, allocations: 18.02 kB / 385.9 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.3277, allocations: 8.969 kB / 385.9 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006657/0.3284, allocations: 314.9 kB / 386.2 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.3307, allocations: 1.699 MB / 387.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006709/0.3314, allocations: 367.6 kB / 388.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.3317, allocations: 187.8 kB / 388.4 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.3318, allocations: 3.688 kB / 388.4 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004583/0.3323, allocations: 268.2 kB / 388.7 MB, free: 6.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.994e-06/0.3323, allocations: 0 / 388.7 MB, free: 6.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002244/0.3345, allocations: 1.014 MB / 389.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.3346, allocations: 190.7 kB / 389.9 MB, free: 5.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.3352, allocations: 0.4934 MB / 390.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.3353, allocations: 33.33 kB / 390.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.3354, allocations: 252.5 kB / 390.7 MB, free: 4.805 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.496e-05/0.3355, allocations: 119.4 kB / 390.8 MB, free: 4.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.3357, allocations: 80.22 kB / 390.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3358, allocations: 358.3 kB / 391.2 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.336, allocations: 128.2 kB / 391.3 MB, free: 4.285 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/0.3363, allocations: 215.6 kB / 391.5 MB, free: 4.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004476/0.3368, allocations: 272.7 kB / 391.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3368, allocations: 0 / 391.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008062/0.3376, allocations: 473.9 kB / 392.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.3376, allocations: 9.688 kB / 392.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3377, allocations: 2.016 kB / 392.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000521/0.3382, allocations: 165.7 kB / 392.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.3384, allocations: 44 kB / 392.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004782/0.3432, allocations: 6.649 MB / 399.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.3438, allocations: 52.39 kB / 399.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.3438, allocations: 14.19 kB / 399.2 MB, free: 13.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003955/0.3442, allocations: 189.3 kB / 399.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.522e-05/0.3443, allocations: 54.03 kB / 399.4 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.3444, allocations: 61.81 kB / 399.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3445, allocations: 4.344 kB / 399.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3445, allocations: 4.797 kB / 399.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3445, allocations: 10 kB / 399.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006876/0.3452, allocations: 494.8 kB / 400 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3452, allocations: 0 / 400 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.3454, allocations: 24.73 kB / 400 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004557/0.3458, allocations: 153.4 kB / 400.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.369e-05/0.3459, allocations: 11.88 kB / 400.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005528/0.3514, allocations: 6.356 MB / 406.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3515, allocations: 5.625 kB / 406.5 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.3526, allocations: 0.5054 MB / 407 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.3529, allocations: 157.7 kB / 407.2 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.093e-05/0.353, allocations: 12.03 kB / 407.2 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.3533, allocations: 32.34 kB / 407.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.3534, allocations: 49.53 kB / 407.3 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.3535, allocations: 12.94 kB / 407.3 MB, free: 5.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000483/0.354, allocations: 364.3 kB / 407.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.354, allocations: 3.938 kB / 407.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008593/0.3548, allocations: 176.9 kB / 407.8 MB, free: 5.719 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001089/0.3559, allocations: 431.1 kB / 408.3 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.3572, allocations: 0.8057 MB / 409.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3573, allocations: 1.375 kB / 409.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008448/0.3581, allocations: 0.6503 MB / 409.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006474/0.3588, allocations: 121.8 kB / 409.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.3608, allocations: 0.9597 MB / 410.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.3614, allocations: 0.8612 MB / 411.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000227/0.3617, allocations: 56.05 kB / 411.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.521e-05/0.3618, allocations: 36.34 kB / 411.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3618, allocations: 0 / 411.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of Templates: time 0.01852/0.3803, allocations: 9.606 MB / 421.4 MB, free: 14.64 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches