Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008007/0.0008007, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004077/0.004077, allocations: 161.5 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8468/0.8468, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.367e-05, allocations: 6.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003527/0.00355, allocations: 3.732 MB / 329.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.004765, allocations: 1.024 MB / 330.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.00493, allocations: 7.938 kB / 330.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.005107, allocations: 87.14 kB / 330.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.005311, allocations: 194.3 kB / 330.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.005706, allocations: 243.5 kB / 331.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005473/0.006254, allocations: 0.8519 MB / 332 MB, free: 9.258 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.006453, allocations: 109.5 kB / 332.1 MB, free: 9.152 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004207/0.006873, allocations: 471 kB / 332.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.007124, allocations: 275.3 kB / 332.8 MB, free: 8.422 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.248e-05/0.007196, allocations: 84 kB / 332.9 MB, free: 8.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.034e-05/0.007286, allocations: 84 kB / 333 MB, free: 8.258 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.007374, allocations: 171.4 kB / 333.1 MB, free: 8.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.007536, allocations: 243.4 kB / 333.4 MB, free: 7.852 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006157/0.008151, allocations: 0.9076 MB / 334.3 MB, free: 6.941 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.008154, allocations: 0 / 334.3 MB, free: 6.941 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.008155, allocations: 0 / 334.3 MB, free: 6.941 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.008162, allocations: 0 / 334.3 MB, free: 6.941 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001688/0.00985, allocations: 0.9771 MB / 335.3 MB, free: 5.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.009885, allocations: 12.03 kB / 335.3 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.01003, allocations: 72.48 kB / 335.3 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.01043, allocations: 371.7 kB / 335.7 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.01046, allocations: 29.38 kB / 335.7 MB, free: 5.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.154e-05/0.01052, allocations: 36.38 kB / 335.8 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008213/0.01134, allocations: 0.6246 MB / 336.4 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.01136, allocations: 4.188 kB / 336.4 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.01139, allocations: 16.36 kB / 336.4 MB, free: 4.723 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.0114, allocations: 19.94 kB / 336.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009888/0.01239, allocations: 0.6323 MB / 337.1 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.01442, allocations: 1.909 MB / 339 MB, free: 2.082 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/0.01624, allocations: 0.8198 MB / 339.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000581/0.01682, allocations: 365.3 kB / 340.2 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.01685, allocations: 8.312 kB / 340.2 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006722/0.01752, allocations: 472.2 kB / 340.6 MB, free: 408 kB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.413e-06/0.01753, allocations: 0 / 340.6 MB, free: 408 kB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.006732/0.02426, allocations: 2.305 MB / 342.9 MB, free: 14.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.02431, allocations: 85.11 kB / 343 MB, free: 13.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.02464, allocations: 393.7 kB / 343.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.888e-05/0.02468, allocations: 33.7 kB / 343.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.02481, allocations: 240.8 kB / 343.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.91e-05/0.0249, allocations: 138.8 kB / 343.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.02501, allocations: 74.05 kB / 343.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.02512, allocations: 350.8 kB / 344.2 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005055/0.02562, allocations: 330.4 kB / 344.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005065/0.02613, allocations: 393.9 kB / 344.9 MB, free: 11.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009158/0.02705, allocations: 0.599 MB / 345.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.02705, allocations: 3.938 kB / 345.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001781/0.02883, allocations: 1.015 MB / 346.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.158e-05/0.02888, allocations: 37.69 kB / 346.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.02889, allocations: 7.938 kB / 346.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000771/0.02966, allocations: 435 kB / 347 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.02989, allocations: 83.92 kB / 347.1 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.03476, allocations: 3.617 MB / 350.7 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.03507, allocations: 91.8 kB / 350.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.0351, allocations: 12 kB / 350.8 MB, free: 5.973 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.03527, allocations: 166.2 kB / 351 MB, free: 5.801 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.81e-05/0.03532, allocations: 55.64 kB / 351 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.449e-05/0.03538, allocations: 52.42 kB / 351.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.03538, allocations: 4 kB / 351.1 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.03539, allocations: 4.094 kB / 351.1 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.03539, allocations: 7.969 kB / 351.1 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.03576, allocations: 437.3 kB / 351.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.03576, allocations: 4 kB / 351.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002149/0.03598, allocations: 79.91 kB / 351.6 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006485/0.03662, allocations: 432.5 kB / 352 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.03665, allocations: 15.86 kB / 352 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004267/0.04092, allocations: 3.605 MB / 355.6 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.04092, allocations: 7.938 kB / 355.6 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.04395, allocations: 1.492 MB / 357.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.0441, allocations: 111.7 kB / 357.2 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.704e-05/0.04414, allocations: 11.98 kB / 357.3 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.04439, allocations: 71.91 kB / 357.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.404e-05/0.04448, allocations: 47.92 kB / 357.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.04451, allocations: 15.98 kB / 357.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001912/0.0447, allocations: 283.2 kB / 357.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0447, allocations: 0 / 357.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003932/0.04509, allocations: 179.8 kB / 357.8 MB, free: 14.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001185/0.04521, allocations: 103.2 kB / 357.9 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.04672, allocations: 0.9713 MB / 358.9 MB, free: 13.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.04672, allocations: 0 / 358.9 MB, free: 13.65 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008059/0.04752, allocations: 0.5768 MB / 359.5 MB, free: 13.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.04781, allocations: 81.42 kB / 359.6 MB, free: 12.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.04954, allocations: 1.205 MB / 360.8 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.04968, allocations: 232.9 kB / 361 MB, free: 11.49 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.677e-05/0.04977, allocations: 44.42 kB / 361.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.04977, allocations: 4 kB / 361.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of Templates: time 0.008593/0.05837, allocations: 10.06 MB / 371.1 MB, free: 1.426 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.085308902896941]