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.001465/0.001465, allocations: 187.6 kB / 16.41 MB, free: 5.723 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.88/1.88, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001101/0.0011, allocations: 84.69 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004043, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3269, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4517, allocations: 78.34 MB / 452.9 MB, free: 2.445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.4521, allocations: 75.95 kB / 452.9 MB, free: 2.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02076/0.4728, allocations: 4.964 MB / 457.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4729, allocations: 0 / 457.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.579e-05/0.4729, allocations: 8 kB / 457.9 MB, free: 13.37 MB / 346.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.001283/0.4742, allocations: 0.5707 MB / 458.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4743, allocations: 12.03 kB / 458.5 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.4744, allocations: 31.62 kB / 458.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.4748, allocations: 274.5 kB / 458.8 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.4749, allocations: 20.52 kB / 458.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-05/0.475, allocations: 28 kB / 458.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007642/0.4757, allocations: 290.5 kB / 459.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.4758, allocations: 3.984 kB / 459.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-05/0.4758, allocations: 12 kB / 459.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.4758, allocations: 4 kB / 459.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.4765, allocations: 210.2 kB / 459.3 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002526/0.4791, allocations: 1.149 MB / 460.5 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007769/0.4799, allocations: 211.4 kB / 460.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.48, allocations: 8.125 kB / 460.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004617/0.4804, allocations: 183.7 kB / 460.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.395e-06/0.4804, allocations: 0 / 460.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.002337/0.4828, allocations: 0.5161 MB / 461.4 MB, free: 9.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.4829, allocations: 106.8 kB / 461.5 MB, free: 9.512 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003525/0.4833, allocations: 220.1 kB / 461.7 MB, free: 9.293 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/0.4833, allocations: 33.7 kB / 461.8 MB, free: 9.254 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.4835, allocations: 222.9 kB / 462 MB, free: 9.035 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.036e-05/0.4836, allocations: 71 kB / 462 MB, free: 8.965 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.46e-05/0.4836, allocations: 4 kB / 462 MB, free: 8.961 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4837, allocations: 326.8 kB / 462.4 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.484, allocations: 72.47 kB / 462.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.4843, allocations: 128.4 kB / 462.6 MB, free: 8.418 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.4846, allocations: 89.12 kB / 462.6 MB, free: 8.332 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4847, allocations: 0 / 462.6 MB, free: 8.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008126/0.4855, allocations: 280.9 kB / 462.9 MB, free: 8.051 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.4855, allocations: 8.891 kB / 462.9 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.4855, allocations: 4 kB / 462.9 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005195/0.4861, allocations: 90.73 kB / 463 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/0.4864, allocations: 39.84 kB / 463.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003189/0.4896, allocations: 1.956 MB / 465 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000411/0.49, allocations: 43.92 kB / 465.1 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.4901, allocations: 4 kB / 465.1 MB, free: 5.766 MB / 346.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.0002831/0.4903, allocations: 149.7 kB / 465.2 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.4904, allocations: 23.72 kB / 465.2 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-05/0.4905, allocations: 34.17 kB / 465.3 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.4905, allocations: 4 kB / 465.3 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.4905, allocations: 0 / 465.3 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.4906, allocations: 3.984 kB / 465.3 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005249/0.4911, allocations: 357.2 kB / 465.6 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.4911, allocations: 4 kB / 465.6 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002267/0.4914, allocations: 19.98 kB / 465.6 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004498/0.4918, allocations: 101 kB / 465.7 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.4919, allocations: 0 / 465.7 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/0.4951, allocations: 1.96 MB / 467.7 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4951, allocations: 0 / 467.7 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.4964, allocations: 428.5 kB / 468.1 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.4966, allocations: 121 kB / 468.2 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.4967, allocations: 8 kB / 468.3 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.497, allocations: 15.98 kB / 468.3 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.4972, allocations: 39.94 kB / 468.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.4972, allocations: 4 kB / 468.3 MB, free: 2.285 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002558/0.4975, allocations: 176.5 kB / 468.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4975, allocations: 0 / 468.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005871/0.4981, allocations: 91.84 kB / 468.6 MB, free: 2.023 MB / 346.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.0002085/0.4983, allocations: 119.5 kB / 468.7 MB, free: 1.898 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.4993, allocations: 366.4 kB / 469 MB, free: 1.527 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4994, allocations: 4.125 kB / 469.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.5, allocations: 267.4 kB / 469.3 MB, free: 1.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004725/0.5005, allocations: 60.84 kB / 469.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.5023, allocations: 0.7402 MB / 470.1 MB, free: 432 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.5027, allocations: 0.7716 MB / 470.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.5028, allocations: 19.44 kB / 470.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5028, allocations: 3.938 kB / 470.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of Templates: time 0.01009/0.5129, allocations: 4.517 MB / 475.4 MB, free: 11.09 MB / 362.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/jenkins1/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