Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.225/1.225, allocations: 205.1 MB / 223.8 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009747/0.0009747, allocations: 103.7 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008142/0.0008142, allocations: 39.94 kB / 327.2 MB, free: 320 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1987, allocations: 46.62 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004342/0.2031, allocations: 3.924 MB / 377.8 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.2048, allocations: 1.015 MB / 378.8 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004765/0.2053, allocations: 6.781 kB / 378.8 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.2056, allocations: 66.2 kB / 378.8 MB, free: 41.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.206, allocations: 147.5 kB / 379 MB, free: 41.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000453/0.2065, allocations: 191.3 kB / 379.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005932/0.2071, allocations: 0.7076 MB / 379.9 MB, free: 41.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.2073, allocations: 147 kB / 380 MB, free: 41.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.2076, allocations: 252.9 kB / 380.3 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.2079, allocations: 310.4 kB / 380.6 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.437e-05/0.208, allocations: 37.5 kB / 380.6 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.574e-05/0.2081, allocations: 37.19 kB / 380.6 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.961e-05/0.2082, allocations: 112.5 kB / 380.8 MB, free: 40.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.2084, allocations: 274.9 kB / 381 MB, free: 40.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004632/0.2089, allocations: 0.7592 MB / 381.8 MB, free: 39.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2089, allocations: 0 / 381.8 MB, free: 39.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2089, allocations: 1.594 kB / 381.8 MB, free: 39.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.2089, allocations: 0 / 381.8 MB, free: 39.78 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002106/0.211, allocations: 0.9759 MB / 382.8 MB, free: 39.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.211, allocations: 9.438 kB / 382.8 MB, free: 39.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.823e-05/0.2111, allocations: 56.75 kB / 382.8 MB, free: 38.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003836/0.2115, allocations: 401.8 kB / 383.2 MB, free: 38.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.2116, allocations: 27.31 kB / 383.2 MB, free: 38.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.94e-05/0.2117, allocations: 40.59 kB / 383.3 MB, free: 38.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.2128, allocations: 0.56 MB / 383.8 MB, free: 38.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.2128, allocations: 0 / 383.8 MB, free: 38.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.2129, allocations: 16.25 kB / 383.9 MB, free: 38.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.2129, allocations: 9.062 kB / 383.9 MB, free: 38.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.2144, allocations: 0.5768 MB / 384.4 MB, free: 37.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002796/0.2172, allocations: 2.01 MB / 386.5 MB, free: 36.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/0.2205, allocations: 0.7913 MB / 387.2 MB, free: 35.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007728/0.2213, allocations: 365.3 kB / 387.6 MB, free: 35.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.2213, allocations: 7.984 kB / 387.6 MB, free: 35.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008692/0.2222, allocations: 403.4 kB / 388 MB, free: 35.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.553e-06/0.2222, allocations: 0 / 388 MB, free: 35.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.008191/0.2304, allocations: 1.802 MB / 389.8 MB, free: 33.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.2305, allocations: 85.11 kB / 389.9 MB, free: 33.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.2308, allocations: 381.7 kB / 390.3 MB, free: 32.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.2308, allocations: 33.7 kB / 390.3 MB, free: 32.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.2309, allocations: 224.6 kB / 390.5 MB, free: 32.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.798e-05/0.231, allocations: 130.1 kB / 390.6 MB, free: 32.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.2311, allocations: 74.06 kB / 390.7 MB, free: 32.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.685e-05/0.2312, allocations: 346.8 kB / 391.1 MB, free: 31.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007175/0.2319, allocations: 272.6 kB / 391.3 MB, free: 31.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007458/0.2327, allocations: 313.9 kB / 391.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.234, allocations: 0.5407 MB / 392.2 MB, free: 30.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.234, allocations: 0 / 392.2 MB, free: 30.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003933/0.238, allocations: 1.06 MB / 393.2 MB, free: 29.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.238, allocations: 37.64 kB / 393.3 MB, free: 29.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.238, allocations: 7.984 kB / 393.3 MB, free: 29.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.2391, allocations: 403.3 kB / 393.7 MB, free: 29.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003789/0.2394, allocations: 79.86 kB / 393.7 MB, free: 29.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006267/0.2457, allocations: 3.303 MB / 397 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005704/0.2463, allocations: 91.56 kB / 397.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.033e-05/0.2464, allocations: 8 kB / 397.1 MB, free: 25.66 MB / 298.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0001992/0.2466, allocations: 169.8 kB / 397.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.186e-05/0.2466, allocations: 43.52 kB / 397.3 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.968e-05/0.2467, allocations: 60.31 kB / 397.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2467, allocations: 4 kB / 397.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2468, allocations: 0 / 397.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.2468, allocations: 0 / 397.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004721/0.2472, allocations: 0.5872 MB / 398 MB, free: 24.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2473, allocations: 0 / 398 MB, free: 24.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000388/0.2476, allocations: 79.92 kB / 398.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009171/0.2486, allocations: 398.9 kB / 398.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.687e-05/0.2486, allocations: 15.92 kB / 398.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006112/0.2547, allocations: 3.295 MB / 401.8 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2548, allocations: 0 / 401.8 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03786/0.2926, allocations: 11.97 MB / 413.7 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.2928, allocations: 164.6 kB / 413.9 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.43e-05/0.2929, allocations: 23.92 kB / 413.9 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.2934, allocations: 55.94 kB / 414 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.2936, allocations: 47.92 kB / 414 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.2936, allocations: 15.98 kB / 414.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002158/0.2938, allocations: 275.2 kB / 414.3 MB, free: 7.984 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2938, allocations: 0 / 414.3 MB, free: 7.984 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007156/0.2945, allocations: 255.7 kB / 414.6 MB, free: 7.734 MB / 298.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,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 (24): * Single equations (assignments): 21 * 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.0001239/0.2947, allocations: 115.2 kB / 414.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.2967, allocations: 0.8745 MB / 415.6 MB, free: 6.711 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2967, allocations: 3.938 kB / 415.6 MB, free: 6.707 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.2979, allocations: 0.5337 MB / 416.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004361/0.2983, allocations: 74.25 kB / 416.2 MB, free: 6.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.3012, allocations: 1.798 MB / 418 MB, free: 4.242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002089/0.3014, allocations: 0.8429 MB / 418.8 MB, free: 3.371 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.3016, allocations: 47.27 kB / 418.9 MB, free: 3.328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.3017, allocations: 27.44 kB / 418.9 MB, free: 3.301 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3017, allocations: 0 / 418.9 MB, free: 3.301 MB / 298.7 MB Notification: Performance of Templates: time 0.02195/0.3237, allocations: 18.42 MB / 437.3 MB, free: 0.8594 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches