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.001432/0.001432, allocations: 199.3 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 245.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007366/0.0007368, allocations: 106.5 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002076/0.0002076, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1887, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08576/0.2745, allocations: 81.72 MB / 490.4 MB, free: 9.852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001811/0.2747, allocations: 67.97 kB / 490.5 MB, free: 9.785 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01422/0.2889, allocations: 5.06 MB / 495.5 MB, free: 4.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2889, allocations: 0 / 495.5 MB, free: 4.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.289, allocations: 4 kB / 495.5 MB, free: 4.703 MB / 362.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.00114/0.2901, allocations: 0.6419 MB / 496.2 MB, free: 4.004 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2902, allocations: 12.03 kB / 496.2 MB, free: 3.992 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.2903, allocations: 40.55 kB / 496.2 MB, free: 3.953 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.2906, allocations: 272.5 kB / 496.5 MB, free: 3.645 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.2906, allocations: 20.73 kB / 496.5 MB, free: 3.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.2907, allocations: 28.38 kB / 496.5 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000702/0.2914, allocations: 326.3 kB / 496.8 MB, free: 3.266 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.2914, allocations: 192 / 496.8 MB, free: 3.266 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.2915, allocations: 11.94 kB / 496.9 MB, free: 3.254 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2915, allocations: 7.984 kB / 496.9 MB, free: 3.246 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008859/0.2924, allocations: 341.5 kB / 497.2 MB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.2941, allocations: 1.008 MB / 498.2 MB, free: 1.836 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003059/0.2972, allocations: 0.6115 MB / 498.8 MB, free: 1.215 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005912/0.2978, allocations: 236.7 kB / 499 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.2978, allocations: 7.984 kB / 499.1 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005957/0.2985, allocations: 269.1 kB / 499.3 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.114e-06/0.2985, allocations: 0 / 499.3 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001428/0.2999, allocations: 0.5231 MB / 499.8 MB, free: 168 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.3, allocations: 110.8 kB / 499.9 MB, free: 32 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.3002, allocations: 225 kB / 0.4884 GB, free: 15.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.3002, allocations: 33.7 kB / 0.4885 GB, free: 15.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.174e-05/0.3003, allocations: 164.1 kB / 0.4886 GB, free: 15.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.3004, allocations: 67.02 kB / 0.4887 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/0.3004, allocations: 4 kB / 0.4887 GB, free: 15.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.3005, allocations: 338.8 kB / 0.489 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/0.301, allocations: 156.4 kB / 0.4892 GB, free: 15.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004606/0.3015, allocations: 212.2 kB / 0.4894 GB, free: 14.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008554/0.3023, allocations: 364 kB / 0.4897 GB, free: 14.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3024, allocations: 0 / 0.4897 GB, free: 14.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001029/0.3034, allocations: 442.8 kB / 0.4901 GB, free: 14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.336e-05/0.3034, allocations: 37.7 kB / 0.4902 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.3035, allocations: 7.938 kB / 0.4902 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.3035, allocations: 7.984 kB / 0.4902 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/0.3056, allocations: 327.6 kB / 0.4905 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004468/0.3101, allocations: 3.24 MB / 0.4937 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000393/0.3105, allocations: 63.92 kB / 0.4937 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.3105, allocations: 12 kB / 0.4937 GB, free: 10.04 MB / 378.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.0001593/0.3107, allocations: 133.8 kB / 0.4939 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.987e-05/0.3107, allocations: 23.72 kB / 0.4939 GB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.3108, allocations: 30.17 kB / 0.4939 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3108, allocations: 0 / 0.4939 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3108, allocations: 15.88 kB / 0.4939 GB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3108, allocations: 0 / 0.4939 GB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001695/0.3125, allocations: 0.9549 MB / 0.4949 GB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3125, allocations: 3.938 kB / 0.4949 GB, free: 8.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/0.3146, allocations: 331.7 kB / 0.4952 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3147, allocations: 0 / 0.4952 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.3147, allocations: 11.98 kB / 0.4952 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004391/0.3191, allocations: 3.253 MB / 0.4984 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3191, allocations: 160 / 0.4984 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.3206, allocations: 0.6685 MB / 0.499 GB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.955e-05/0.3207, allocations: 100.8 kB / 0.4991 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.204e-05/0.3207, allocations: 7.938 kB / 0.4991 GB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.3211, allocations: 60 kB / 0.4992 GB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.644e-05/0.3212, allocations: 23.97 kB / 0.4992 GB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.3212, allocations: 7.984 kB / 0.4992 GB, free: 4.062 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001507/0.3214, allocations: 168.5 kB / 0.4994 GB, free: 3.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3214, allocations: 0 / 0.4994 GB, free: 3.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004556/0.3218, allocations: 87.84 kB / 0.4995 GB, free: 3.812 MB / 378.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.0001547/0.322, allocations: 119.2 kB / 0.4996 GB, free: 3.688 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00291/0.3249, allocations: 0.6592 MB / 0.5002 GB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3249, allocations: 128 / 0.5002 GB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00243/0.3274, allocations: 467.6 kB / 0.5007 GB, free: 2.559 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004083/0.3278, allocations: 47.14 kB / 0.5007 GB, free: 2.516 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.3294, allocations: 0.8478 MB / 0.5015 GB, free: 1.625 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.3296, allocations: 0.7443 MB / 0.5023 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.715e-05/0.3297, allocations: 23.44 kB / 0.5023 GB, free: 0.832 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3297, allocations: 0 / 0.5023 GB, free: 0.832 MB / 378.7 MB Notification: Performance of Templates: time 0.1468/0.4765, allocations: 5.322 MB / 0.5075 GB, free: 97.35 MB / 378.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/jenkins1/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