Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000965/0.0009649, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007703/0.0007703, allocations: 105.1 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002432, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.234, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002198/0.2362, allocations: 2.489 MB / 410 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000953/0.2372, allocations: 0.7382 MB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.2373, allocations: 4 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.2375, allocations: 40.25 kB / 410.8 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.2376, allocations: 85.28 kB / 410.8 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.2378, allocations: 73.3 kB / 410.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.2381, allocations: 366.4 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001862/0.2383, allocations: 93.34 kB / 411.4 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.2385, allocations: 127.5 kB / 411.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.2387, allocations: 131.4 kB / 411.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.2387, allocations: 20 kB / 411.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.208e-05/0.2388, allocations: 23.94 kB / 411.7 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.494e-05/0.2388, allocations: 47.83 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.007e-05/0.2389, allocations: 89.52 kB / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.2391, allocations: 320.1 kB / 412.1 MB, free: 23.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2391, allocations: 0 / 412.1 MB, free: 23.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2391, allocations: 0 / 412.1 MB, free: 23.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.2391, allocations: 0 / 412.1 MB, free: 23.2 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.0007917/0.2399, allocations: 0.5777 MB / 412.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.24, allocations: 8.031 kB / 412.7 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.2402, allocations: 43.62 kB / 412.7 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.2404, allocations: 282.4 kB / 413 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.2405, allocations: 20.56 kB / 413 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.77e-05/0.2405, allocations: 24 kB / 413.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.2409, allocations: 288.5 kB / 413.3 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.241, allocations: 0 / 413.3 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/0.241, allocations: 8 kB / 413.3 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.241, allocations: 16 kB / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00034/0.2413, allocations: 210.1 kB / 413.6 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.2428, allocations: 1.164 MB / 414.7 MB, free: 20.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004239/0.2432, allocations: 215.8 kB / 414.9 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.2435, allocations: 156 kB / 415.1 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.2435, allocations: 4.188 kB / 415.1 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.2438, allocations: 167.6 kB / 415.3 MB, free: 19.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.2438, allocations: 0 / 415.3 MB, free: 19.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001227/0.245, allocations: 0.5228 MB / 415.8 MB, free: 19.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.2451, allocations: 132.5 kB / 415.9 MB, free: 19.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.2453, allocations: 241 kB / 416.1 MB, free: 18.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.2453, allocations: 29.7 kB / 416.2 MB, free: 18.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.944e-05/0.2454, allocations: 164.5 kB / 416.3 MB, free: 18.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.2455, allocations: 70.98 kB / 416.4 MB, free: 18.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.2455, allocations: 8.031 kB / 416.4 MB, free: 18.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.132e-05/0.2455, allocations: 334.8 kB / 416.7 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.2457, allocations: 75.91 kB / 416.8 MB, free: 18.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.2458, allocations: 121.1 kB / 416.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.246, allocations: 83.95 kB / 417 MB, free: 17.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.246, allocations: 0 / 417 MB, free: 17.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003996/0.2464, allocations: 286.1 kB / 417.3 MB, free: 17.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.2464, allocations: 4 kB / 417.3 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2465, allocations: 8.031 kB / 417.3 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003155/0.2468, allocations: 96.69 kB / 417.4 MB, free: 17.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.2469, allocations: 27.98 kB / 417.4 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/0.2486, allocations: 1.932 MB / 419.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.2488, allocations: 39.86 kB / 419.4 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.2488, allocations: 12 kB / 419.4 MB, free: 15.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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.000129/0.249, allocations: 153.7 kB / 419.6 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.373e-05/0.249, allocations: 23.72 kB / 419.6 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.858e-05/0.2491, allocations: 30.17 kB / 419.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.2491, allocations: 4 kB / 419.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.2491, allocations: 4 kB / 419.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2491, allocations: 0 / 419.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007158/0.2498, allocations: 0.7708 MB / 420.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.2498, allocations: 112 / 420.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.2499, allocations: 27.81 kB / 420.4 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.2502, allocations: 92.83 kB / 420.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.2502, allocations: 8 kB / 420.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/0.2517, allocations: 1.94 MB / 422.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2517, allocations: 0 / 422.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005383/0.2523, allocations: 466.4 kB / 422.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/0.2524, allocations: 124.7 kB / 423 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.446e-05/0.2524, allocations: 11.98 kB / 423 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.2526, allocations: 20.05 kB / 423.1 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.557e-05/0.2527, allocations: 39.91 kB / 423.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.2528, allocations: 4 kB / 423.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001313/0.2529, allocations: 172.5 kB / 423.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2529, allocations: 0 / 423.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004174/0.2533, allocations: 95.75 kB / 423.4 MB, free: 11.22 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.idealThyristor1.off,idealTriac.idealThyristor.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.0001248/0.2535, allocations: 112.1 kB / 423.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006142/0.2541, allocations: 347.8 kB / 423.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2541, allocations: 4 kB / 423.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.2544, allocations: 266.7 kB / 424.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.2548, allocations: 54.62 kB / 424.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009967/0.2558, allocations: 0.7599 MB / 424.9 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.256, allocations: 0.7634 MB / 425.7 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.956e-05/0.2561, allocations: 27.42 kB / 425.7 MB, free: 8.82 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2561, allocations: 0 / 425.7 MB, free: 8.82 MB / 298.7 MB Notification: Performance of Templates: time 0.005507/0.2616, allocations: 4.618 MB / 430.3 MB, free: 4.219 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches