Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002507/0.002514, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.782/3.782, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.00292/0.00292, allocations: 92.03 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006556/0.000656, allocations: 12 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6158/0.6165, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005727/0.6223, allocations: 2.324 MB / 376.9 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.625, allocations: 0.7559 MB / 377.6 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004731/0.6256, allocations: 4.719 kB / 377.6 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.6257, allocations: 32.03 kB / 377.6 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005818/0.6263, allocations: 117.7 kB / 377.8 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005053/0.6269, allocations: 70.42 kB / 377.8 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008591/0.6277, allocations: 265.8 kB / 378.1 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.6282, allocations: 99.94 kB / 378.2 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000485/0.6287, allocations: 121.6 kB / 378.3 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.6291, allocations: 135.8 kB / 378.4 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.663e-05/0.6292, allocations: 15.91 kB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.6294, allocations: 16 kB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.6295, allocations: 47.3 kB / 378.5 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.6297, allocations: 87.11 kB / 378.6 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000603/0.6303, allocations: 317 kB / 378.9 MB, free: 42.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.6303, allocations: 0 / 378.9 MB, free: 42.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6304, allocations: 1.094 kB / 378.9 MB, free: 42.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.6304, allocations: 0 / 378.9 MB, free: 42.09 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001957/0.6324, allocations: 0.5756 MB / 379.5 MB, free: 41.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.196e-05/0.6325, allocations: 8.844 kB / 379.5 MB, free: 41.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.6327, allocations: 33.56 kB / 379.5 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006893/0.6334, allocations: 273.3 kB / 379.8 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.535e-05/0.6335, allocations: 21.98 kB / 379.8 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.6336, allocations: 29.28 kB / 379.8 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.6348, allocations: 285.1 kB / 380.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.6349, allocations: 5.031 kB / 380.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-05/0.635, allocations: 14.28 kB / 380.1 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.635, allocations: 10.64 kB / 380.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.6361, allocations: 204.6 kB / 380.4 MB, free: 40.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003879/0.64, allocations: 1.178 MB / 381.5 MB, free: 39.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.6413, allocations: 212.4 kB / 381.7 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.6414, allocations: 1.719 kB / 381.7 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006289/0.642, allocations: 174.4 kB / 381.9 MB, free: 39.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 5.1e-06/0.6421, allocations: 0 / 381.9 MB, free: 39.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.003303/0.6454, allocations: 0.5167 MB / 382.4 MB, free: 39.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.493e-05/0.6455, allocations: 110.6 kB / 382.5 MB, free: 39.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005725/0.6461, allocations: 238.2 kB / 382.8 MB, free: 39.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.372e-05/0.6462, allocations: 31.86 kB / 382.8 MB, free: 39.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.6464, allocations: 220.7 kB / 383 MB, free: 38.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.6466, allocations: 76.11 kB / 383.1 MB, free: 38.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.6466, allocations: 4.906 kB / 383.1 MB, free: 38.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.6467, allocations: 318.2 kB / 383.4 MB, free: 38.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004403/0.6472, allocations: 78.44 kB / 383.5 MB, free: 38.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.6477, allocations: 123.3 kB / 383.6 MB, free: 38.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004453/0.6481, allocations: 85.77 kB / 383.7 MB, free: 38.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.992e-06/0.6482, allocations: 0 / 383.7 MB, free: 38.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00145/0.6496, allocations: 280.2 kB / 384 MB, free: 38.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.6497, allocations: 4.125 kB / 384 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.6497, allocations: 1.438 kB / 384 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000789/0.6505, allocations: 96.55 kB / 384.1 MB, free: 38.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.6509, allocations: 34.08 kB / 384.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.6558, allocations: 1.953 MB / 386 MB, free: 36.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006307/0.6565, allocations: 37.14 kB / 386.1 MB, free: 36.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.717e-05/0.6566, allocations: 5.219 kB / 386.1 MB, free: 36.24 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: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000354/0.657, allocations: 145.8 kB / 386.2 MB, free: 36.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.6571, allocations: 36.41 kB / 386.3 MB, free: 36.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.6572, allocations: 30.16 kB / 386.3 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.6573, allocations: 2.75 kB / 386.3 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.6573, allocations: 1.406 kB / 386.3 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.6573, allocations: 3.984 kB / 386.3 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008284/0.6582, allocations: 348.3 kB / 386.6 MB, free: 35.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.6582, allocations: 1.188 kB / 386.6 MB, free: 35.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003574/0.6586, allocations: 24.84 kB / 386.7 MB, free: 35.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006268/0.6592, allocations: 98.55 kB / 386.8 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.6593, allocations: 5.844 kB / 386.8 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00483/0.6641, allocations: 1.963 MB / 388.7 MB, free: 33.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.6642, allocations: 9.047 kB / 388.7 MB, free: 33.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.6663, allocations: 413 kB / 389.1 MB, free: 33.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.6666, allocations: 120.9 kB / 389.3 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.726e-05/0.6667, allocations: 11.94 kB / 389.3 MB, free: 33.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004517/0.6672, allocations: 24 kB / 389.3 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.6675, allocations: 39.94 kB / 389.3 MB, free: 33.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.46e-05/0.6675, allocations: 4 kB / 389.3 MB, free: 33.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003442/0.6679, allocations: 176.5 kB / 389.5 MB, free: 33.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.014e-06/0.6679, allocations: 0 / 389.5 MB, free: 33.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001266/0.6692, allocations: 91.78 kB / 389.6 MB, free: 33.11 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002577/0.6695, allocations: 107.2 kB / 389.7 MB, free: 32.99 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.6709, allocations: 358.4 kB / 390.1 MB, free: 32.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.671, allocations: 0 / 390.1 MB, free: 32.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008912/0.6719, allocations: 270.7 kB / 390.3 MB, free: 32.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007404/0.6726, allocations: 44.92 kB / 390.4 MB, free: 32.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.6752, allocations: 0.7642 MB / 391.1 MB, free: 31.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.6756, allocations: 0.7713 MB / 391.9 MB, free: 30.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.6758, allocations: 19.44 kB / 391.9 MB, free: 30.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.233e-06/0.6758, allocations: 0 / 391.9 MB, free: 30.7 MB / 298.7 MB Notification: Performance of Templates: time 0.01467/0.6905, allocations: 4.507 MB / 396.4 MB, free: 26.2 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches