Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 179.7 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008214/0.0008216, allocations: 102.9 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003182, allocations: 19.94 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2818, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.3951, allocations: 79.72 MB / 481.2 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.3955, allocations: 67.97 kB / 481.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01296/0.4084, allocations: 5.128 MB / 486.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4085, allocations: 0 / 486.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.4085, allocations: 8 kB / 486.4 MB, free: 11.53 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.0008632/0.4094, allocations: 0.5825 MB / 487 MB, free: 10.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.4094, allocations: 8.031 kB / 487 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.363e-05/0.4095, allocations: 31.84 kB / 487 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.4099, allocations: 266.5 kB / 487.3 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.4099, allocations: 20.5 kB / 487.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.861e-05/0.4099, allocations: 24 kB / 487.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004915/0.4104, allocations: 292.5 kB / 487.6 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.4105, allocations: 0 / 487.6 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.4105, allocations: 15.89 kB / 487.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.4105, allocations: 4 kB / 487.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.4109, allocations: 206.2 kB / 487.8 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.4125, allocations: 1.156 MB / 489 MB, free: 8.758 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.413, allocations: 219.1 kB / 489.2 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.413, allocations: 4.188 kB / 489.2 MB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003159/0.4134, allocations: 167 kB / 489.4 MB, free: 8.352 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.222e-06/0.4134, allocations: 0 / 489.4 MB, free: 8.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001383/0.4148, allocations: 0.5276 MB / 489.9 MB, free: 7.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.153e-05/0.4149, allocations: 110.8 kB / 490 MB, free: 7.664 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.4151, allocations: 216.2 kB / 490.2 MB, free: 7.449 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.4151, allocations: 29.7 kB / 490.3 MB, free: 7.414 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.4153, allocations: 168.4 kB / 490.4 MB, free: 7.246 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.899e-05/0.4153, allocations: 71 kB / 490.5 MB, free: 7.176 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.4153, allocations: 4 kB / 490.5 MB, free: 7.172 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4155, allocations: 330.8 kB / 490.8 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.4156, allocations: 79.97 kB / 490.9 MB, free: 6.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.4158, allocations: 120.5 kB / 491 MB, free: 6.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.416, allocations: 82.75 kB / 491.1 MB, free: 6.547 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.416, allocations: 0 / 491.1 MB, free: 6.547 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004912/0.4165, allocations: 308.7 kB / 491.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.4165, allocations: 4 kB / 491.4 MB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.4165, allocations: 0 / 491.4 MB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003919/0.4169, allocations: 88.75 kB / 491.5 MB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.4171, allocations: 31.97 kB / 491.5 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.4196, allocations: 1.964 MB / 493.5 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.4198, allocations: 31.83 kB / 493.5 MB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.4199, allocations: 11.98 kB / 493.5 MB, free: 3.969 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (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.0002277/0.4201, allocations: 152.8 kB / 493.7 MB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/0.4202, allocations: 31.66 kB / 493.7 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.089e-05/0.4203, allocations: 34.12 kB / 493.7 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.4203, allocations: 0 / 493.7 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4203, allocations: 112 / 493.7 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.4203, allocations: 7.922 kB / 493.8 MB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003967/0.4207, allocations: 349.4 kB / 494.1 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4207, allocations: 3.938 kB / 494.1 MB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.4208, allocations: 23.98 kB / 494.1 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.4211, allocations: 92.75 kB / 494.2 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.4211, allocations: 4 kB / 494.2 MB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002169/0.4233, allocations: 1.975 MB / 496.2 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4233, allocations: 0 / 496.2 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008825/0.4242, allocations: 428.1 kB / 496.6 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.4244, allocations: 120.8 kB / 496.7 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.4244, allocations: 4 kB / 496.7 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.4246, allocations: 28.05 kB / 496.8 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.172e-05/0.4247, allocations: 35.88 kB / 496.8 MB, free: 480 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.4247, allocations: 8 kB / 496.8 MB, free: 472 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001531/0.4249, allocations: 172.5 kB / 497 MB, free: 300 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4249, allocations: 0 / 497 MB, free: 300 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003927/0.4253, allocations: 95.78 kB / 497.1 MB, free: 204 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0001694/0.4255, allocations: 111.2 kB / 497.2 MB, free: 84 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000698/0.4262, allocations: 366.5 kB / 497.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4262, allocations: 0 / 497.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003999/0.4266, allocations: 268.3 kB / 497.8 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.4269, allocations: 52.73 kB / 497.8 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.4281, allocations: 0.7234 MB / 498.6 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.4284, allocations: 0.7676 MB / 499.3 MB, free: 13.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.287e-05/0.4285, allocations: 26.28 kB / 499.4 MB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.586e-05/0.4286, allocations: 19.44 kB / 499.4 MB, free: 13.8 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4286, allocations: 0 / 499.4 MB, free: 13.8 MB / 378.7 MB Notification: Performance of Templates: time 0.007848/0.4364, allocations: 4.297 MB / 0.4919 GB, free: 9.582 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches