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.001284/0.001284, allocations: 179.1 kB / 16.72 MB, free: 4.953 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.538/1.538, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0008933/0.0008934, allocations: 92.78 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2324, allocations: 47.58 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002588/0.235, allocations: 2.45 MB / 377.5 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2362, allocations: 0.742 MB / 378.3 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.2364, allocations: 7.438 kB / 378.3 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.2365, allocations: 32.03 kB / 378.3 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.2367, allocations: 86.69 kB / 378.4 MB, free: 42.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002554/0.2369, allocations: 65.75 kB / 378.5 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.2373, allocations: 373.3 kB / 378.8 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.2375, allocations: 110.2 kB / 378.9 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.2377, allocations: 120.6 kB / 379.1 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.2379, allocations: 135.4 kB / 379.2 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.42e-05/0.2379, allocations: 15.03 kB / 379.2 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.798e-05/0.238, allocations: 16 kB / 379.2 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.546e-05/0.238, allocations: 52.17 kB / 379.3 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.2382, allocations: 171.9 kB / 379.4 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.2384, allocations: 318 kB / 379.7 MB, free: 41.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2384, allocations: 5.312 kB / 379.7 MB, free: 41.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2384, allocations: 3.938 kB / 379.8 MB, free: 41.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.351e-06/0.2384, allocations: 0 / 379.8 MB, free: 41.84 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.0008582/0.2393, allocations: 0.5732 MB / 380.3 MB, free: 41.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.2394, allocations: 9.531 kB / 380.3 MB, free: 41.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.624e-05/0.2394, allocations: 34.53 kB / 380.4 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.2397, allocations: 282.1 kB / 380.6 MB, free: 41.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.2398, allocations: 18.94 kB / 380.7 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.015e-05/0.2398, allocations: 28.56 kB / 380.7 MB, free: 41.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004741/0.2403, allocations: 292.5 kB / 381 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2403, allocations: 1 kB / 381 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.2404, allocations: 14.23 kB / 381 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2404, allocations: 6.438 kB / 381 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003827/0.2408, allocations: 201 kB / 381.2 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.2422, allocations: 1.168 MB / 382.4 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.2427, allocations: 224.2 kB / 382.6 MB, free: 39.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.243, allocations: 145.3 kB / 382.7 MB, free: 39.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.243, allocations: 2.062 kB / 382.7 MB, free: 39.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.2434, allocations: 177.5 kB / 382.9 MB, free: 39.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.174e-06/0.2434, allocations: 0 / 382.9 MB, free: 39.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001288/0.2447, allocations: 0.5241 MB / 383.4 MB, free: 39.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.2447, allocations: 131.9 kB / 383.6 MB, free: 38.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.2449, allocations: 243.6 kB / 383.8 MB, free: 38.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.245, allocations: 30.7 kB / 383.8 MB, free: 38.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.2451, allocations: 163.8 kB / 384 MB, free: 38.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.825e-05/0.2451, allocations: 74.92 kB / 384.1 MB, free: 38.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/0.2451, allocations: 6.375 kB / 384.1 MB, free: 38.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.711e-05/0.2452, allocations: 335.5 kB / 384.4 MB, free: 38.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.2453, allocations: 73.72 kB / 384.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.2455, allocations: 115.6 kB / 384.6 MB, free: 37.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002809/0.2458, allocations: 177.3 kB / 384.7 MB, free: 37.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2458, allocations: 1.25 kB / 384.7 MB, free: 37.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004691/0.2463, allocations: 297.6 kB / 385 MB, free: 37.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.2463, allocations: 5.312 kB / 385 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2463, allocations: 5.094 kB / 385 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/0.2467, allocations: 96.67 kB / 385.1 MB, free: 37.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.2468, allocations: 25.36 kB / 385.2 MB, free: 37.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.2486, allocations: 1.946 MB / 387.1 MB, free: 35.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.2489, allocations: 36.73 kB / 387.1 MB, free: 35.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.2489, allocations: 9.344 kB / 387.2 MB, free: 35.85 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.0001507/0.2491, allocations: 142.2 kB / 387.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.2491, allocations: 24.36 kB / 387.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.4e-05/0.2492, allocations: 32.05 kB / 387.4 MB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2492, allocations: 13.94 kB / 387.4 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.2492, allocations: 1.188 kB / 387.4 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2492, allocations: 4.953 kB / 387.4 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008589/0.2501, allocations: 0.7674 MB / 388.1 MB, free: 35.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2501, allocations: 1.094 kB / 388.1 MB, free: 35.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.2502, allocations: 32.11 kB / 388.2 MB, free: 34.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002525/0.2505, allocations: 86.05 kB / 388.3 MB, free: 34.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.2505, allocations: 5.25 kB / 388.3 MB, free: 34.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001579/0.2521, allocations: 1.933 MB / 390.2 MB, free: 32.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2521, allocations: 0 / 390.2 MB, free: 32.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005476/0.2527, allocations: 464.2 kB / 390.6 MB, free: 32.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.276e-05/0.2528, allocations: 124.8 kB / 390.8 MB, free: 32.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.2528, allocations: 4 kB / 390.8 MB, free: 32.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.253, allocations: 27.98 kB / 390.8 MB, free: 32.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.48e-05/0.2531, allocations: 39.88 kB / 390.8 MB, free: 32.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2531, allocations: 8 kB / 390.8 MB, free: 32.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001276/0.2533, allocations: 172.5 kB / 391 MB, free: 32.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2533, allocations: 0 / 391 MB, free: 32.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004341/0.2537, allocations: 87.84 kB / 391.1 MB, free: 31.96 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.0001097/0.2538, allocations: 111.2 kB / 391.2 MB, free: 31.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005768/0.2544, allocations: 354.4 kB / 391.6 MB, free: 31.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2544, allocations: 0 / 391.6 MB, free: 31.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.2547, allocations: 270.7 kB / 391.8 MB, free: 31.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.2552, allocations: 64.7 kB / 391.9 MB, free: 31.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009373/0.2561, allocations: 0.7492 MB / 392.6 MB, free: 30.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.2563, allocations: 0.7674 MB / 393.4 MB, free: 29.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.929e-05/0.2563, allocations: 15.44 kB / 393.4 MB, free: 29.55 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.2563, allocations: 0 / 393.4 MB, free: 29.55 MB / 298.7 MB Notification: Performance of Templates: time 0.005221/0.2616, allocations: 4.609 MB / 398 MB, free: 24.95 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