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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00244/0.002439, allocations: 182.4 kB / 8.155 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.2 MB / 213.8 MB, free: 13.85 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.001259/0.001259, allocations: 94.34 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.098e-05/1.115e-05, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2499, allocations: 47.55 MB / 361.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/0.3711, allocations: 77.51 MB / 439.3 MB, free: 8.535 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.3715, allocations: 63.97 kB / 439.4 MB, free: 8.473 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0222/0.3937, allocations: 4.657 MB / 444.1 MB, free: 3.859 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.651e-05/0.3938, allocations: 8 kB / 444.1 MB, free: 3.852 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.001303/0.3951, allocations: 0.5457 MB / 444.6 MB, free: 3.258 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.3951, allocations: 12.03 kB / 444.6 MB, free: 3.246 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.3953, allocations: 36.09 kB / 444.7 MB, free: 3.211 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006079/0.3959, allocations: 274.5 kB / 444.9 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.396, allocations: 8 kB / 444.9 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.425e-05/0.396, allocations: 16 kB / 444.9 MB, free: 2.879 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006253/0.3967, allocations: 173 kB / 445.1 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006573/0.3973, allocations: 238.6 kB / 445.4 MB, free: 2.465 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3974, allocations: 0.9375 kB / 445.4 MB, free: 2.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.34e-05/0.3974, allocations: 3.906 kB / 445.4 MB, free: 2.461 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.3975, allocations: 8 kB / 445.4 MB, free: 2.453 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002713/0.4002, allocations: 1.097 MB / 446.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/0.4009, allocations: 175.1 kB / 446.6 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004336/0.4013, allocations: 133.2 kB / 446.8 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.4014, allocations: 3.656 kB / 446.8 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003388/0.4017, allocations: 152.5 kB / 446.9 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.715e-06/0.4017, allocations: 224 / 446.9 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009255/0.4027, allocations: 247.4 kB / 447.2 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.23e-05/0.4028, allocations: 136.5 kB / 447.3 MB, free: 396 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003396/0.4031, allocations: 187.9 kB / 447.5 MB, free: 204 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.4032, allocations: 25.7 kB / 447.5 MB, free: 172 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.4034, allocations: 214.8 kB / 447.7 MB, free: 15.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.575e-05/0.4035, allocations: 67 kB / 447.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.935e-05/0.4035, allocations: 0 / 447.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.4037, allocations: 322.8 kB / 448.1 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.4039, allocations: 60 kB / 448.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.4042, allocations: 109.6 kB / 448.3 MB, free: 15.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.4044, allocations: 65.95 kB / 448.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.4045, allocations: 3.938 kB / 448.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007151/0.4052, allocations: 239.8 kB / 448.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.4052, allocations: 10.03 kB / 448.6 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.4052, allocations: 5.781 kB / 448.6 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005441/0.4058, allocations: 88.91 kB / 448.7 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.4061, allocations: 23.98 kB / 448.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003474/0.4096, allocations: 1.852 MB / 450.5 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.41, allocations: 31.83 kB / 450.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.41, allocations: 11.98 kB / 450.6 MB, free: 12.94 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: V.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 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 {3 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001661/0.4102, allocations: 34.98 kB / 450.6 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.434e-05/0.4103, allocations: 25.47 kB / 450.6 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.4104, allocations: 30.05 kB / 450.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.4104, allocations: 4 kB / 450.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4104, allocations: 0 / 450.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4105, allocations: 4 kB / 450.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.412, allocations: 0.724 MB / 451.4 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4121, allocations: 0 / 451.4 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.4123, allocations: 23.98 kB / 451.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000464/0.4128, allocations: 84.84 kB / 451.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.4128, allocations: 0 / 451.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/0.416, allocations: 1.817 MB / 453.3 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.416, allocations: 3.906 kB / 453.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009631/0.417, allocations: 431.6 kB / 453.7 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.4172, allocations: 120.7 kB / 453.9 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.4173, allocations: 4 kB / 453.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003838/0.4177, allocations: 20.11 kB / 453.9 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.4178, allocations: 23.95 kB / 453.9 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.4178, allocations: 4 kB / 453.9 MB, free: 9.391 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002269/0.4181, allocations: 160.5 kB / 454.1 MB, free: 9.234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006295/0.4187, allocations: 87.75 kB / 454.2 MB, free: 9.148 MB / 346.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.0001948/0.4189, allocations: 99.19 kB / 454.3 MB, free: 9.043 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.4201, allocations: 297.5 kB / 454.5 MB, free: 8.742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.4201, allocations: 0 / 454.5 MB, free: 8.742 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008453/0.421, allocations: 214 kB / 454.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/0.4218, allocations: 36.39 kB / 454.8 MB, free: 8.488 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.4236, allocations: 438.3 kB / 455.2 MB, free: 8.031 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005168/0.4242, allocations: 0.7943 MB / 456 MB, free: 7.207 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4242, allocations: 0 / 456 MB, free: 7.207 MB / 346.7 MB Notification: Performance of Templates: time 0.009976/0.4342, allocations: 4.486 MB / 460.5 MB, free: 2.75 MB / 346.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