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.001147/0.001152, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.532/1.532, allocations: 205.4 MB / 222.5 MB, free: 9.031 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.000844/0.0008439, allocations: 90.61 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.0003221, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.244, allocations: 47.57 MB / 374.5 MB, free: 45.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002714/0.2468, allocations: 2.45 MB / 377 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.2482, allocations: 0.7376 MB / 377.7 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002935/0.2485, allocations: 8.406 kB / 377.7 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.2487, allocations: 36.19 kB / 377.8 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001878/0.2489, allocations: 86.77 kB / 377.9 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.2491, allocations: 61.89 kB / 377.9 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003328/0.2495, allocations: 375.2 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.2497, allocations: 98.89 kB / 378.4 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.2499, allocations: 120.1 kB / 378.5 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.25, allocations: 132.1 kB / 378.6 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.2501, allocations: 15.97 kB / 378.6 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.952e-05/0.2502, allocations: 19.09 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.883e-05/0.2502, allocations: 56.25 kB / 378.7 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.779e-05/0.2503, allocations: 82.52 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.2505, allocations: 318.1 kB / 379.1 MB, free: 41.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2505, allocations: 1.031 kB / 379.1 MB, free: 41.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2505, allocations: 0 / 379.1 MB, free: 41.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.2506, allocations: 0 / 379.1 MB, free: 41.91 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.0009013/0.2515, allocations: 0.5754 MB / 379.7 MB, free: 41.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.2515, allocations: 9.719 kB / 379.7 MB, free: 41.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.369e-05/0.2516, allocations: 37.59 kB / 379.7 MB, free: 41.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.2519, allocations: 264.7 kB / 380 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.2519, allocations: 27.11 kB / 380 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.252, allocations: 24.25 kB / 380 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.2525, allocations: 291.5 kB / 380.3 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2525, allocations: 0.9688 kB / 380.3 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.2526, allocations: 10.34 kB / 380.3 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.2526, allocations: 6.906 kB / 380.3 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004/0.253, allocations: 208.7 kB / 380.6 MB, free: 40.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.2545, allocations: 1.178 MB / 381.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004566/0.2549, allocations: 224.3 kB / 381.9 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.2552, allocations: 142.3 kB / 382.1 MB, free: 39.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.2552, allocations: 1.469 kB / 382.1 MB, free: 39.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.2555, allocations: 179 kB / 382.3 MB, free: 39.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.733e-06/0.2556, allocations: 0 / 382.3 MB, free: 39.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001321/0.2569, allocations: 0.5197 MB / 382.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.2569, allocations: 132.3 kB / 382.9 MB, free: 38.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/0.2572, allocations: 238.5 kB / 383.1 MB, free: 38.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.2572, allocations: 30.92 kB / 383.2 MB, free: 38.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.2573, allocations: 163.1 kB / 383.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.425e-05/0.2573, allocations: 71.88 kB / 383.4 MB, free: 38.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.2574, allocations: 5.062 kB / 383.4 MB, free: 38.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.392e-05/0.2574, allocations: 336.8 kB / 383.7 MB, free: 38.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.2576, allocations: 73.22 kB / 383.8 MB, free: 38.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.2578, allocations: 120 kB / 383.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.2579, allocations: 81.28 kB / 384 MB, free: 38.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2579, allocations: 0 / 384 MB, free: 38.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004717/0.2584, allocations: 293.8 kB / 384.3 MB, free: 37.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.2584, allocations: 8.859 kB / 384.3 MB, free: 37.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.2585, allocations: 1.375 kB / 384.3 MB, free: 37.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003252/0.2588, allocations: 104.8 kB / 384.4 MB, free: 37.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.2589, allocations: 30.14 kB / 384.4 MB, free: 37.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.2607, allocations: 1.931 MB / 386.4 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.2609, allocations: 40.02 kB / 386.4 MB, free: 36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.261, allocations: 6 kB / 386.4 MB, free: 36 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.0001344/0.2611, allocations: 154.7 kB / 386.6 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.2612, allocations: 23.09 kB / 386.6 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.275e-05/0.2612, allocations: 32.52 kB / 386.6 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2612, allocations: 2.156 kB / 386.6 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.2612, allocations: 1.062 kB / 386.6 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2612, allocations: 1.438 kB / 386.6 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008123/0.2621, allocations: 0.7743 MB / 387.4 MB, free: 35.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2621, allocations: 5.062 kB / 387.4 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.2622, allocations: 21.17 kB / 387.4 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002459/0.2625, allocations: 89.55 kB / 387.5 MB, free: 35.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.2625, allocations: 10.08 kB / 387.5 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/0.2641, allocations: 1.938 MB / 389.5 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2641, allocations: 0 / 389.5 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005519/0.2647, allocations: 472.2 kB / 389.9 MB, free: 32.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.672e-05/0.2648, allocations: 124.8 kB / 390 MB, free: 32.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.2648, allocations: 7.953 kB / 390 MB, free: 32.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.265, allocations: 23.98 kB / 390.1 MB, free: 32.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.969e-05/0.2651, allocations: 36 kB / 390.1 MB, free: 32.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.2651, allocations: 8 kB / 390.1 MB, free: 32.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001223/0.2653, allocations: 172.5 kB / 390.3 MB, free: 32.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2653, allocations: 4 kB / 390.3 MB, free: 32.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004478/0.2657, allocations: 87.84 kB / 390.4 MB, free: 32.3 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.0001296/0.2659, allocations: 103.2 kB / 390.5 MB, free: 32.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006122/0.2665, allocations: 354.4 kB / 390.8 MB, free: 31.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2665, allocations: 0 / 390.8 MB, free: 31.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.2668, allocations: 266.7 kB / 391.1 MB, free: 31.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004123/0.2673, allocations: 48.41 kB / 391.1 MB, free: 31.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.2683, allocations: 0.7568 MB / 391.9 MB, free: 30.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.2685, allocations: 0.7751 MB / 392.7 MB, free: 29.92 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.388e-05/0.2686, allocations: 19.44 kB / 392.7 MB, free: 29.9 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2686, allocations: 4 kB / 392.7 MB, free: 29.89 MB / 298.7 MB Notification: Performance of Templates: time 0.006/0.2746, allocations: 4.603 MB / 397.3 MB, free: 25.29 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/jenkins/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