Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 108.8 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 47.92 kB / 371.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2339, allocations: 52.18 MB / 423.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005701/0.2396, allocations: 4.094 MB / 428 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.2415, allocations: 1.024 MB / 429 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.2417, allocations: 11.94 kB / 429 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.2419, allocations: 79.2 kB / 429.1 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003554/0.2423, allocations: 190.4 kB / 429.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.2428, allocations: 219.7 kB / 429.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009253/0.2437, allocations: 0.8133 MB / 430.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.244, allocations: 119 kB / 430.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004418/0.2444, allocations: 319 kB / 430.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004965/0.2449, allocations: 350.7 kB / 431.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.2451, allocations: 84 kB / 431.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.2452, allocations: 80 kB / 431.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.2453, allocations: 159.4 kB / 431.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000343/0.2457, allocations: 330.6 kB / 431.7 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008988/0.2466, allocations: 0.8482 MB / 432.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2466, allocations: 4 kB / 432.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2466, allocations: 3.938 kB / 432.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2466, allocations: 0 / 432.6 MB, free: 5.93 MB / 334.1 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.00281/0.2494, allocations: 0.9662 MB / 433.5 MB, free: 4.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.2494, allocations: 11.97 kB / 433.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.2496, allocations: 64.56 kB / 433.6 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006601/0.2502, allocations: 364.5 kB / 434 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.968e-05/0.2503, allocations: 29.38 kB / 434 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-05/0.2504, allocations: 36.36 kB / 434 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.2519, allocations: 0.5954 MB / 434.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.2519, allocations: 4 kB / 434.6 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.382e-05/0.2519, allocations: 16 kB / 434.6 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.2519, allocations: 8 kB / 434.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001963/0.2539, allocations: 0.6206 MB / 435.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003978/0.2579, allocations: 2.115 MB / 437.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004039/0.2619, allocations: 0.8036 MB / 438.2 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/0.263, allocations: 361.3 kB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.373e-05/0.263, allocations: 8.312 kB / 438.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.2642, allocations: 430.5 kB / 439 MB, free: 15.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.034e-06/0.2642, allocations: 0 / 439 MB, free: 15.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01509/0.2793, allocations: 2.203 MB / 441.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.791e-05/0.2794, allocations: 81.11 kB / 441.3 MB, free: 13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005649/0.2799, allocations: 410 kB / 441.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/0.28, allocations: 37.7 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.2802, allocations: 236.9 kB / 441.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.2804, allocations: 134.8 kB / 442.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.2805, allocations: 74 kB / 442.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.2807, allocations: 362.7 kB / 442.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009619/0.2817, allocations: 284.6 kB / 442.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009928/0.2827, allocations: 341.8 kB / 443.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.2845, allocations: 0.5798 MB / 443.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.2845, allocations: 0 / 443.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003804/0.2883, allocations: 0.9746 MB / 444.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.61e-05/0.2883, allocations: 36.92 kB / 444.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.2884, allocations: 4 kB / 444.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.2897, allocations: 396.5 kB / 445.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/0.2902, allocations: 83.92 kB / 445.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0091/0.2993, allocations: 3.568 MB / 448.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007439/0.3, allocations: 91.84 kB / 448.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.591e-05/0.3001, allocations: 11.98 kB / 448.8 MB, free: 5.238 MB / 350.1 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.0002812/0.3004, allocations: 177.7 kB / 449 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-05/0.3004, allocations: 51.67 kB / 449.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001253/0.3006, allocations: 48.47 kB / 449.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.3006, allocations: 8 kB / 449.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3006, allocations: 7.984 kB / 449.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3006, allocations: 0 / 449.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007678/0.3013, allocations: 0.5901 MB / 449.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3014, allocations: 0 / 449.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005059/0.3019, allocations: 79.86 kB / 449.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.3031, allocations: 396.6 kB / 450.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.3031, allocations: 15.98 kB / 450.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008813/0.3119, allocations: 3.567 MB / 453.8 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3119, allocations: 0 / 453.8 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006311/0.3182, allocations: 1.446 MB / 455.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003086/0.3185, allocations: 103.5 kB / 455.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.753e-05/0.3186, allocations: 15.92 kB / 455.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006163/0.3192, allocations: 71.92 kB / 455.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.3194, allocations: 51.91 kB / 455.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.3194, allocations: 11.98 kB / 455.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003826/0.3198, allocations: 287.2 kB / 455.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3198, allocations: 4 kB / 455.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006513/0.3205, allocations: 167.9 kB / 455.9 MB, free: 13.98 MB / 366.1 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.0001672/0.3206, allocations: 111.2 kB / 456 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002802/0.3234, allocations: 0.9033 MB / 456.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3234, allocations: 4.062 kB / 456.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.3251, allocations: 0.5375 MB / 457.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.3256, allocations: 89.48 kB / 457.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.329, allocations: 1.247 MB / 458.8 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.3295, allocations: 0.8394 MB / 459.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3297, allocations: 31.44 kB / 459.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3297, allocations: 0 / 459.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01521/0.3449, allocations: 9.927 MB / 469.6 MB, free: 224 kB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.621898069046438]