Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 103.9 kB / 18.39 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 190.5 kB / 19.33 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 60.33 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1015, allocations: 46.61 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00594/0.1075, allocations: 3.891 MB / 379.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2256/0.3331, allocations: 1.014 MB / 380.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004549/0.3336, allocations: 9.031 kB / 380.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002739/0.3339, allocations: 83.98 kB / 380.8 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003381/0.3343, allocations: 168.8 kB / 381 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005489/0.3349, allocations: 207.7 kB / 381.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008807/0.3357, allocations: 0.7626 MB / 382 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003776/0.3361, allocations: 173.2 kB / 382.1 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.3366, allocations: 290.2 kB / 382.4 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004393/0.337, allocations: 336.3 kB / 382.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.3372, allocations: 76.44 kB / 382.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.3374, allocations: 77.44 kB / 382.9 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.3376, allocations: 152.1 kB / 383 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003751/0.3379, allocations: 318.6 kB / 383.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.339, allocations: 0.7971 MB / 384.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.339, allocations: 5.469 kB / 384.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.339, allocations: 0 / 384.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.339, allocations: 0 / 384.1 MB, free: 9.121 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002507/0.3415, allocations: 0.9751 MB / 385.1 MB, free: 8.469 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3416, allocations: 10 kB / 385.1 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.3417, allocations: 56.47 kB / 385.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005832/0.3423, allocations: 417.9 kB / 385.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.3424, allocations: 29.06 kB / 385.6 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/0.3425, allocations: 38.89 kB / 385.7 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.3438, allocations: 0.5593 MB / 386.2 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.3438, allocations: 6.406 kB / 386.2 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.3439, allocations: 15.44 kB / 386.2 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3439, allocations: 8.906 kB / 386.2 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.3456, allocations: 0.5697 MB / 386.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003427/0.3491, allocations: 2.002 MB / 388.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003593/0.3527, allocations: 0.7948 MB / 389.6 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009583/0.3536, allocations: 368.1 kB / 390 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.3537, allocations: 10.22 kB / 390 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.3547, allocations: 401.7 kB / 390.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.425e-06/0.3548, allocations: 0 / 390.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009405/0.3642, allocations: 1.786 MB / 392.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.3642, allocations: 90.33 kB / 392.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005404/0.3648, allocations: 387.4 kB / 392.6 MB, free: 5.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.612e-05/0.3649, allocations: 36.8 kB / 392.7 MB, free: 5.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.365, allocations: 222.6 kB / 392.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.3652, allocations: 127.5 kB / 393 MB, free: 4.734 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/0.3653, allocations: 73.98 kB / 393.1 MB, free: 4.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3655, allocations: 348.4 kB / 393.4 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000871/0.3663, allocations: 268.6 kB / 393.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009533/0.3673, allocations: 317 kB / 394 MB, free: 4.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001788/0.3691, allocations: 0.5362 MB / 394.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.3691, allocations: 0 / 394.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004716/0.3738, allocations: 1.056 MB / 395.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.564e-05/0.3739, allocations: 37.98 kB / 395.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.3739, allocations: 0 / 395.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.3752, allocations: 398.5 kB / 396 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000436/0.3756, allocations: 83.8 kB / 396.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00886/0.3845, allocations: 3.681 MB / 399.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008777/0.3854, allocations: 84.91 kB / 399.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-05/0.3855, allocations: 12.23 kB / 399.9 MB, free: 0.9414 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003572/0.3859, allocations: 174.5 kB / 400 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.3861, allocations: 45.09 kB / 400.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.3862, allocations: 50.25 kB / 400.1 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3862, allocations: 7.344 kB / 400.1 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.3862, allocations: 3.938 kB / 400.1 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3863, allocations: 3.984 kB / 400.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008488/0.3871, allocations: 0.5898 MB / 400.7 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3871, allocations: 4 kB / 400.7 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.3876, allocations: 71.53 kB / 400.8 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/0.3888, allocations: 398.8 kB / 401.2 MB, free: 0 / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/0.3889, allocations: 5.297 kB / 401.2 MB, free: 0 / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009906/0.3988, allocations: 3.661 MB / 404.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3989, allocations: 4 kB / 404.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005114/0.404, allocations: 1.253 MB / 406.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004456/0.4044, allocations: 168.3 kB / 406.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001969/0.4047, allocations: 11.16 kB / 406.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007055/0.4054, allocations: 64.58 kB / 406.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.4056, allocations: 54.48 kB / 406.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.975e-05/0.4057, allocations: 16.7 kB / 406.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005378/0.4062, allocations: 276.7 kB / 406.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.71e-07/0.4063, allocations: 0 / 406.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00109/0.4074, allocations: 173.9 kB / 406.9 MB, free: 12.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000304/0.4077, allocations: 111 kB / 407 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003201/0.4109, allocations: 0.8759 MB / 407.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4109, allocations: 0.875 kB / 407.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.4126, allocations: 0.5412 MB / 408.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000827/0.4135, allocations: 79.22 kB / 408.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004045/0.4175, allocations: 1.181 MB / 409.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007046/0.4183, allocations: 0.8298 MB / 410.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.4185, allocations: 32.84 kB / 410.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of SimCode: time 2.244e-06/0.4185, allocations: 0 / 410.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of Templates: time 0.0183/0.4368, allocations: 9.378 MB / 419.9 MB, free: 1.609 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches