Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.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.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.001172/0.001172, allocations: 187.1 kB / 19.33 MB, free: 3.781 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.301/1.301, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001245/0.001245, allocations: 51.94 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08231/0.08356, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003967/0.08756, allocations: 2.7 MB / 378.5 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.089, allocations: 0.7447 MB / 379.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.0892, allocations: 4 kB / 379.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.08936, allocations: 39.58 kB / 379.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.08955, allocations: 83.27 kB / 379.4 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003996/0.08996, allocations: 107.7 kB / 379.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004187/0.09039, allocations: 382.5 kB / 379.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.09057, allocations: 84.55 kB / 379.9 MB, free: 420 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.09082, allocations: 151.5 kB / 380.1 MB, free: 268 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.09112, allocations: 171.3 kB / 380.3 MB, free: 96 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.858e-05/0.09119, allocations: 32 kB / 380.3 MB, free: 64 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.737e-05/0.09125, allocations: 32 kB / 380.3 MB, free: 32 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1664/0.2577, allocations: 69.8 kB / 380.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002686/0.2579, allocations: 156.3 kB / 380.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.2585, allocations: 360.6 kB / 380.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2585, allocations: 0.9844 kB / 380.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2585, allocations: 3.594 kB / 380.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2585, allocations: 0 / 380.9 MB, free: 10.1 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001684/0.2602, allocations: 0.6707 MB / 381.6 MB, free: 9.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2602, allocations: 17.02 kB / 381.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.47e-05/0.2603, allocations: 31.69 kB / 381.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003494/0.2607, allocations: 266.6 kB / 381.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.2607, allocations: 17.38 kB / 381.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.972e-05/0.2608, allocations: 20.83 kB / 381.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007626/0.2616, allocations: 308 kB / 382.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.2616, allocations: 3.938 kB / 382.2 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.2616, allocations: 5.562 kB / 382.2 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.2616, allocations: 8.562 kB / 382.2 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009616/0.2626, allocations: 295.1 kB / 382.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.2644, allocations: 0.9562 MB / 383.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003336/0.2678, allocations: 0.4913 MB / 384 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006074/0.2684, allocations: 209.4 kB / 384.2 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.2684, allocations: 7.078 kB / 384.2 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006307/0.2691, allocations: 237.1 kB / 384.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.004e-06/0.2691, allocations: 0 / 384.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00153/0.2706, allocations: 470.3 kB / 384.9 MB, free: 8.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.2707, allocations: 106.1 kB / 385 MB, free: 8.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.2709, allocations: 230.8 kB / 385.2 MB, free: 8.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.2709, allocations: 32.16 kB / 385.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.271, allocations: 159.5 kB / 385.4 MB, free: 8.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.2711, allocations: 68.94 kB / 385.5 MB, free: 8.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.962e-05/0.2712, allocations: 50.73 kB / 385.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.88e-05/0.2712, allocations: 338.9 kB / 385.8 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000496/0.2717, allocations: 135.4 kB / 386 MB, free: 7.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.2722, allocations: 188.5 kB / 386.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008599/0.2731, allocations: 317.8 kB / 386.5 MB, free: 7.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2731, allocations: 0.7969 kB / 386.5 MB, free: 7.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001063/0.2742, allocations: 407.6 kB / 386.9 MB, free: 7.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.2742, allocations: 37.94 kB / 386.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2742, allocations: 3.141 kB / 386.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2743, allocations: 3.406 kB / 386.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001879/0.2761, allocations: 239.5 kB / 387.1 MB, free: 7.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00415/0.2803, allocations: 3.4 MB / 390.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.2808, allocations: 53.95 kB / 390.6 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.2808, allocations: 7.031 kB / 390.6 MB, free: 4.516 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.2809, allocations: 142.6 kB / 390.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.281, allocations: 23.89 kB / 390.8 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.976e-05/0.281, allocations: 30.08 kB / 390.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.281, allocations: 3.812 kB / 390.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2811, allocations: 5.156 kB / 390.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2811, allocations: 6.5 kB / 390.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.2828, allocations: 0.898 MB / 391.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2829, allocations: 0 / 391.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/0.2847, allocations: 229.8 kB / 391.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.2847, allocations: 4.844 kB / 391.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.2847, allocations: 10.12 kB / 391.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00406/0.2888, allocations: 3.403 MB / 395.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2888, allocations: 5.406 kB / 395.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.2903, allocations: 0.5895 MB / 395.9 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.2904, allocations: 106.4 kB / 396 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.2904, allocations: 7.703 kB / 396.1 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003839/0.2908, allocations: 46.05 kB / 396.1 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.201e-05/0.2909, allocations: 29.16 kB / 396.1 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.463e-05/0.291, allocations: 8.359 kB / 396.1 MB, free: 240 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001364/0.2911, allocations: 170.7 kB / 396.3 MB, free: 132 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2911, allocations: 0 / 396.3 MB, free: 132 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004989/0.2916, allocations: 74.16 kB / 396.4 MB, free: 124 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001041/0.2917, allocations: 108.2 kB / 396.5 MB, free: 32 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002912/0.2947, allocations: 0.5592 MB / 397 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2947, allocations: 1.562 kB / 397 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/0.2968, allocations: 348.3 kB / 397.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.2973, allocations: 41.45 kB / 397.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.299, allocations: 0.7018 MB / 398.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.2994, allocations: 0.7502 MB / 398.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.2995, allocations: 21.59 kB / 398.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2995, allocations: 0 / 398.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of Templates: time 0.007771/0.3073, allocations: 5.454 MB / 404.3 MB, free: 12.87 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches