Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001549/0.001549, allocations: 201 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008862/0.0008859, allocations: 99.14 kB / 297.5 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003335, allocations: 8 kB / 358.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3075, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1242/0.4318, allocations: 80.47 MB / 489.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.4322, allocations: 71.95 kB / 489.9 MB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0143/0.4465, allocations: 5.22 MB / 495.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.4466, allocations: 0 / 495.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.937e-05/0.4466, allocations: 7.984 kB / 495.1 MB, free: 5.734 MB / 362.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.001306/0.4479, allocations: 0.571 MB / 495.7 MB, free: 5.113 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.448, allocations: 8.031 kB / 495.7 MB, free: 5.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002809/0.4483, allocations: 48.55 kB / 495.8 MB, free: 5.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.4488, allocations: 283.5 kB / 496 MB, free: 4.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.4488, allocations: 20.94 kB / 496.1 MB, free: 4.723 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.724e-05/0.4489, allocations: 28.38 kB / 496.1 MB, free: 4.695 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00058/0.4495, allocations: 285.1 kB / 496.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.4495, allocations: 192 / 496.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.4495, allocations: 15.94 kB / 496.4 MB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.4496, allocations: 4 kB / 496.4 MB, free: 4.387 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.45, allocations: 214.1 kB / 496.6 MB, free: 4.176 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.4521, allocations: 1.148 MB / 497.7 MB, free: 2.945 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005226/0.4527, allocations: 218.6 kB / 498 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003149/0.453, allocations: 144.8 kB / 498.1 MB, free: 2.578 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.453, allocations: 4 kB / 498.1 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003509/0.4534, allocations: 170.1 kB / 498.3 MB, free: 2.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.355e-06/0.4534, allocations: 0 / 498.3 MB, free: 2.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001572/0.455, allocations: 0.5537 MB / 498.8 MB, free: 1.805 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.448e-05/0.4551, allocations: 128.5 kB / 499 MB, free: 1.648 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.4554, allocations: 244.9 kB / 499.2 MB, free: 1.402 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.4554, allocations: 29.7 kB / 499.2 MB, free: 1.367 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.4555, allocations: 168.4 kB / 499.4 MB, free: 1.199 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.131e-05/0.4556, allocations: 70.98 kB / 499.5 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.4556, allocations: 4 kB / 499.5 MB, free: 1.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.4558, allocations: 342.8 kB / 499.8 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.456, allocations: 67.98 kB / 499.9 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.4562, allocations: 133 kB / 500 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.4565, allocations: 175.3 kB / 0.4884 GB, free: 392 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4565, allocations: 0 / 0.4884 GB, free: 392 kB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005657/0.4571, allocations: 290.1 kB / 0.4887 GB, free: 92 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.4571, allocations: 12.09 kB / 0.4887 GB, free: 80 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4572, allocations: 3.938 kB / 0.4887 GB, free: 76 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003844/0.4576, allocations: 95.16 kB / 0.4888 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.4577, allocations: 35.92 kB / 0.4889 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/0.4602, allocations: 1.98 MB / 0.4908 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.4605, allocations: 35.8 kB / 0.4908 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.4606, allocations: 12 kB / 0.4908 GB, free: 13.78 MB / 378.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 () * Number of clocked 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.0002113/0.4608, allocations: 149.8 kB / 0.491 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.4608, allocations: 27.72 kB / 0.491 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.007e-05/0.4609, allocations: 26.19 kB / 0.491 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.4609, allocations: 4 kB / 0.491 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.4609, allocations: 3.984 kB / 0.491 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.4609, allocations: 3.938 kB / 0.491 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.4621, allocations: 0.8061 MB / 0.4918 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4621, allocations: 0 / 0.4918 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.4623, allocations: 19.98 kB / 0.4918 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002791/0.4626, allocations: 92.84 kB / 0.4919 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.4626, allocations: 7.938 kB / 0.4919 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.4649, allocations: 1.946 MB / 0.4938 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4649, allocations: 0 / 0.4938 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007249/0.4657, allocations: 466.2 kB / 0.4943 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.4658, allocations: 120.8 kB / 0.4944 GB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/0.4659, allocations: 4 kB / 0.4944 GB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.4661, allocations: 27.98 kB / 0.4944 GB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.4662, allocations: 35.88 kB / 0.4945 GB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.4662, allocations: 8.062 kB / 0.4945 GB, free: 9.812 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001833/0.4664, allocations: 176.5 kB / 0.4946 GB, free: 9.641 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4664, allocations: 0 / 0.4946 GB, free: 9.641 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005383/0.467, allocations: 95.78 kB / 0.4947 GB, free: 9.547 MB / 378.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) * 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.0001901/0.4672, allocations: 103.4 kB / 0.4948 GB, free: 9.434 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007575/0.468, allocations: 361 kB / 0.4952 GB, free: 9.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.468, allocations: 96 / 0.4952 GB, free: 9.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.4684, allocations: 278.3 kB / 0.4954 GB, free: 8.785 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004812/0.4689, allocations: 66.77 kB / 0.4955 GB, free: 8.723 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.4703, allocations: 0.7085 MB / 0.4962 GB, free: 7.984 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.4707, allocations: 0.7638 MB / 0.4969 GB, free: 7.195 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000129/0.4709, allocations: 22.28 kB / 0.497 GB, free: 7.172 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.807e-05/0.471, allocations: 19.44 kB / 0.497 GB, free: 7.156 MB / 378.7 MB Notification: Performance of SimCode: time 2.084e-06/0.471, allocations: 3.938 kB / 0.497 GB, free: 7.152 MB / 378.7 MB Notification: Performance of Templates: time 0.009957/0.4809, allocations: 4.35 MB / 0.5012 GB, free: 2.852 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches