Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 200.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 226.6 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008705/0.0008705, allocations: 100.5 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002498, allocations: 11.98 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2532, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003595/0.2568, allocations: 2.333 MB / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.2587, allocations: 0.69 MB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.2589, allocations: 3.938 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.2592, allocations: 32.39 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003102/0.2595, allocations: 68.86 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.26, allocations: 85.83 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000458/0.2605, allocations: 334.5 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.2607, allocations: 68.22 kB / 411.6 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003641/0.2611, allocations: 131.5 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003077/0.2614, allocations: 147.4 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.112e-05/0.2615, allocations: 17.47 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.2616, allocations: 20 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.691e-05/0.2617, allocations: 51.81 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.2619, allocations: 161.1 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.2623, allocations: 267.7 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2623, allocations: 0 / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2623, allocations: 3.938 kB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.2623, allocations: 3.938 kB / 412.4 MB, free: 23.31 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.002088/0.2644, allocations: 0.6572 MB / 413.1 MB, free: 22.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.2645, allocations: 8.031 kB / 413.1 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.2648, allocations: 48.55 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.2652, allocations: 268.6 kB / 413.4 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.2653, allocations: 12.81 kB / 413.4 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.009e-05/0.2654, allocations: 24.31 kB / 413.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.2666, allocations: 330 kB / 413.8 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.2667, allocations: 3.984 kB / 413.8 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.776e-05/0.2667, allocations: 12 kB / 413.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.2667, allocations: 4 kB / 413.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.2685, allocations: 341.5 kB / 414.1 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002522/0.271, allocations: 0.9842 MB / 415.1 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005084/0.2761, allocations: 0.592 MB / 415.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.2772, allocations: 250.9 kB / 415.9 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.2773, allocations: 3.984 kB / 415.9 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.2784, allocations: 267.3 kB / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 5.461e-06/0.2784, allocations: 0 / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.002717/0.2811, allocations: 0.517 MB / 416.7 MB, free: 18.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.2812, allocations: 110.8 kB / 416.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.2816, allocations: 225 kB / 417.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.302e-05/0.2816, allocations: 33.7 kB / 417.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.2818, allocations: 164.1 kB / 417.2 MB, free: 18.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.042e-05/0.2819, allocations: 71 kB / 417.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/0.2819, allocations: 4 kB / 417.3 MB, free: 18.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.696e-05/0.282, allocations: 334.8 kB / 417.6 MB, free: 17.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008256/0.2828, allocations: 156.4 kB / 417.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008625/0.2837, allocations: 212.2 kB / 418 MB, free: 17.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.2853, allocations: 356.1 kB / 418.4 MB, free: 17.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2853, allocations: 0 / 418.4 MB, free: 17.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00185/0.2872, allocations: 446.8 kB / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.2872, allocations: 37.64 kB / 418.8 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.2873, allocations: 0 / 418.8 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.2873, allocations: 0 / 418.8 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003127/0.2904, allocations: 311.6 kB / 419.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006581/0.297, allocations: 3.228 MB / 422.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007152/0.2978, allocations: 59.83 kB / 422.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.593e-05/0.2979, allocations: 12.09 kB / 422.4 MB, free: 12.73 MB / 298.7 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 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000238/0.2982, allocations: 137.8 kB / 422.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.133e-05/0.2983, allocations: 23.72 kB / 422.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.739e-05/0.2984, allocations: 30.17 kB / 422.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.2984, allocations: 11.88 kB / 422.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2984, allocations: 0 / 422.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.2984, allocations: 0 / 422.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002743/0.3012, allocations: 0.9586 MB / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3012, allocations: 4 kB / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/0.3043, allocations: 311.7 kB / 423.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.3043, allocations: 0 / 423.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.407e-05/0.3044, allocations: 7.984 kB / 423.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006595/0.311, allocations: 3.229 MB / 427.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.3111, allocations: 0 / 427.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/0.3137, allocations: 0.6585 MB / 427.8 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.3138, allocations: 112.8 kB / 427.9 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.97e-05/0.3139, allocations: 3.984 kB / 427.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006308/0.3146, allocations: 55.89 kB / 428 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.3147, allocations: 35.92 kB / 428 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.3148, allocations: 7.984 kB / 428 MB, free: 6.793 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002413/0.3151, allocations: 168.5 kB / 428.2 MB, free: 6.625 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3151, allocations: 0 / 428.2 MB, free: 6.625 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008527/0.3159, allocations: 79.84 kB / 428.2 MB, free: 6.547 MB / 298.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001779/0.3161, allocations: 103.2 kB / 428.3 MB, free: 6.434 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004426/0.3206, allocations: 0.6436 MB / 429 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.3206, allocations: 0 / 429 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003454/0.3241, allocations: 443.8 kB / 429.4 MB, free: 5.344 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008431/0.325, allocations: 36.36 kB / 429.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.3278, allocations: 0.8433 MB / 430.3 MB, free: 4.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.3281, allocations: 0.756 MB / 431.1 MB, free: 3.648 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.3283, allocations: 19.44 kB / 431.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.3283, allocations: 0 / 431.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of Templates: time 0.0116/0.3399, allocations: 5.381 MB / 436.5 MB, free: 14.27 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches