Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001136/0.001136, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.523/1.523, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.001013/0.001013, allocations: 98.56 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.258e-05/2.262e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08986/0.0899, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.287/0.3769, allocations: 78.23 MB / 448.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.3771, allocations: 71.75 kB / 448.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01213/0.3893, allocations: 4.965 MB / 453.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3893, allocations: 0 / 453.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.3893, allocations: 4 kB / 453.3 MB, free: 10.79 MB / 330.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.0007409/0.3901, allocations: 0.535 MB / 453.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3901, allocations: 8.031 kB / 453.8 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.488e-05/0.3902, allocations: 39.47 kB / 453.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.3905, allocations: 279.2 kB / 454.1 MB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.3906, allocations: 27.58 kB / 454.2 MB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.3906, allocations: 23.31 kB / 454.2 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004663/0.3911, allocations: 275.2 kB / 454.5 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3911, allocations: 0 / 454.5 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.3912, allocations: 5.875 kB / 454.5 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3912, allocations: 11.94 kB / 454.5 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.3915, allocations: 190.3 kB / 454.7 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.3931, allocations: 1.152 MB / 455.8 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004132/0.3935, allocations: 207.8 kB / 456 MB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000252/0.3938, allocations: 149.3 kB / 456.2 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.3938, allocations: 192 / 456.2 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.3941, allocations: 161 kB / 456.3 MB, free: 8.141 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.3941, allocations: 0 / 456.3 MB, free: 8.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005411/0.3947, allocations: 270.8 kB / 456.6 MB, free: 7.934 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.216e-05/0.3948, allocations: 136.5 kB / 456.7 MB, free: 7.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.395, allocations: 209.2 kB / 456.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.395, allocations: 32.88 kB / 457 MB, free: 7.559 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3951, allocations: 166.6 kB / 457.1 MB, free: 7.422 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.503e-05/0.3952, allocations: 73.05 kB / 457.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.097e-05/0.3952, allocations: 2.688 kB / 457.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3954, allocations: 336 kB / 457.5 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.3955, allocations: 68.75 kB / 457.6 MB, free: 6.992 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.3957, allocations: 120.8 kB / 457.7 MB, free: 6.879 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001304/0.3958, allocations: 65.3 kB / 457.8 MB, free: 6.816 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3958, allocations: 0 / 457.8 MB, free: 6.816 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004264/0.3962, allocations: 282.2 kB / 458 MB, free: 6.531 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3963, allocations: 4 kB / 458 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.3963, allocations: 0 / 458 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003307/0.3966, allocations: 100.6 kB / 458.1 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.3967, allocations: 23.98 kB / 458.2 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/0.3989, allocations: 1.981 MB / 460.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.3992, allocations: 39.75 kB / 460.2 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.3992, allocations: 8.062 kB / 460.2 MB, free: 4.238 MB / 330.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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.3993, allocations: 125.8 kB / 460.3 MB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.3994, allocations: 19.81 kB / 460.3 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.362e-05/0.3994, allocations: 33.95 kB / 460.4 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3995, allocations: 0 / 460.4 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.3995, allocations: 4 kB / 460.4 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3995, allocations: 0 / 460.4 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000962/0.4004, allocations: 0.7959 MB / 461.2 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4005, allocations: 0 / 461.2 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.4006, allocations: 19.98 kB / 461.2 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002463/0.4008, allocations: 93.34 kB / 461.3 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.4009, allocations: 4 kB / 461.3 MB, free: 3.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001913/0.4028, allocations: 1.949 MB / 463.2 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4028, allocations: 0 / 463.2 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005491/0.4034, allocations: 450.9 kB / 463.7 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.4035, allocations: 120.8 kB / 463.8 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.4035, allocations: 11.95 kB / 463.8 MB, free: 384 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.4037, allocations: 19.98 kB / 463.8 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.693e-05/0.4038, allocations: 36.14 kB / 463.9 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.4039, allocations: 15.88 kB / 463.9 MB, free: 312 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001565/0.404, allocations: 173.4 kB / 464 MB, free: 140 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.404, allocations: 4 kB / 464 MB, free: 136 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004335/0.4045, allocations: 87.84 kB / 464.1 MB, free: 48 kB / 330.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.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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.0001791/0.4047, allocations: 107.9 kB / 464.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000597/0.4053, allocations: 338.2 kB / 464.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4053, allocations: 4.188 kB / 464.6 MB, free: 15.58 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.4056, allocations: 254.3 kB / 464.8 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.406, allocations: 53.33 kB / 464.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000955/0.407, allocations: 404.8 kB / 465.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.4074, allocations: 0.7716 MB / 466 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.4075, allocations: 26.06 kB / 466.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.261e-05/0.4075, allocations: 15.44 kB / 466.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4075, allocations: 0 / 466.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of Templates: time 0.00791/0.4154, allocations: 4.3 MB / 470.4 MB, free: 9.715 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches