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.001655/0.001656, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.741/1.741, allocations: 222.9 MB / 240.9 MB, free: 10.98 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.001265/0.001265, allocations: 111.7 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001/0.001001, allocations: 31.95 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2862, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004233/0.2905, allocations: 2.958 MB / 402.4 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.2916, allocations: 0.7088 MB / 403.1 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2917, allocations: 4 kB / 403.1 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.2919, allocations: 39.69 kB / 403.2 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.2921, allocations: 84.31 kB / 403.3 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.2924, allocations: 91.86 kB / 403.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003038/0.2927, allocations: 394.3 kB / 403.7 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.2929, allocations: 115.9 kB / 403.8 MB, free: 28.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.2931, allocations: 131.4 kB / 404 MB, free: 28.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.2933, allocations: 151.3 kB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.006e-05/0.2933, allocations: 27.94 kB / 404.2 MB, free: 28.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.645e-05/0.2934, allocations: 20 kB / 404.2 MB, free: 28.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.793e-05/0.2934, allocations: 55.77 kB / 404.2 MB, free: 28.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.2935, allocations: 159.2 kB / 404.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.2938, allocations: 408.2 kB / 404.8 MB, free: 28.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2939, allocations: 0 / 404.8 MB, free: 28.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2939, allocations: 0 / 404.8 MB, free: 28.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.2939, allocations: 3.938 kB / 404.8 MB, free: 28.02 MB / 298.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.000952/0.2948, allocations: 0.6221 MB / 405.4 MB, free: 27.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2949, allocations: 12.03 kB / 405.4 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/0.295, allocations: 32.56 kB / 405.5 MB, free: 27.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.2953, allocations: 279.6 kB / 405.7 MB, free: 26.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.2953, allocations: 16.94 kB / 405.7 MB, free: 26.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.2953, allocations: 28.38 kB / 405.8 MB, free: 26.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.2958, allocations: 296.8 kB / 406.1 MB, free: 26.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.2958, allocations: 0 / 406.1 MB, free: 26.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.2958, allocations: 15.92 kB / 406.1 MB, free: 26.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.2958, allocations: 8 kB / 406.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003347/0.2962, allocations: 202.1 kB / 406.3 MB, free: 26.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.2976, allocations: 1.152 MB / 407.4 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.298, allocations: 226.6 kB / 407.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.2983, allocations: 136.8 kB / 407.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.2984, allocations: 7.984 kB / 407.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003711/0.2987, allocations: 174.6 kB / 408 MB, free: 24.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.2987, allocations: 0 / 408 MB, free: 24.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001218/0.3, allocations: 0.5168 MB / 408.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.3, allocations: 128.5 kB / 408.6 MB, free: 23.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.3002, allocations: 244.9 kB / 408.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3003, allocations: 33.7 kB / 408.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.3004, allocations: 160.5 kB / 409 MB, free: 23.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.723e-05/0.3004, allocations: 78.98 kB / 409.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.55e-05/0.3005, allocations: 53.73 kB / 409.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.703e-05/0.3006, allocations: 330.8 kB / 409.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3007, allocations: 71.97 kB / 409.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.3008, allocations: 117.1 kB / 409.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.3011, allocations: 180 kB / 409.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3011, allocations: 0 / 409.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004027/0.3015, allocations: 286.9 kB / 410.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3015, allocations: 8 kB / 410.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.3015, allocations: 3.938 kB / 410.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003339/0.3019, allocations: 96.83 kB / 410.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.302, allocations: 23.98 kB / 410.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.3037, allocations: 1.94 MB / 412.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.304, allocations: 31.83 kB / 412.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.304, allocations: 16.06 kB / 412.2 MB, free: 20.07 MB / 298.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,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * 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 (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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001394/0.3041, allocations: 151.6 kB / 412.4 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.3042, allocations: 23.72 kB / 412.4 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.723e-05/0.3042, allocations: 30.17 kB / 412.4 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3042, allocations: 7.938 kB / 412.5 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3043, allocations: 112 / 412.5 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3043, allocations: 3.938 kB / 412.5 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007835/0.3051, allocations: 0.7647 MB / 413.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3051, allocations: 0 / 413.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.3052, allocations: 23.88 kB / 413.2 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002163/0.3054, allocations: 96.78 kB / 413.3 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.3054, allocations: 0 / 413.3 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.307, allocations: 1.94 MB / 415.3 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.307, allocations: 3.938 kB / 415.3 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003959/0.311, allocations: 4.03 MB / 419.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.256e-05/0.3111, allocations: 124.8 kB / 419.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.3111, allocations: 0 / 419.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.3113, allocations: 19.98 kB / 419.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.3114, allocations: 40.06 kB / 419.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.3114, allocations: 4 kB / 419.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.3116, allocations: 176.5 kB / 419.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3116, allocations: 0 / 419.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005615/0.3121, allocations: 127.8 kB / 419.8 MB, free: 12.02 MB / 298.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.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.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 (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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001487/0.3123, allocations: 103.2 kB / 419.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000629/0.3129, allocations: 358.3 kB / 420.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3129, allocations: 0 / 420.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003271/0.3133, allocations: 258.5 kB / 420.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.3137, allocations: 56.59 kB / 420.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.3151, allocations: 1.048 MB / 421.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.3153, allocations: 0.768 MB / 422.4 MB, free: 9.324 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.3154, allocations: 30.22 kB / 422.4 MB, free: 9.293 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.3154, allocations: 23.42 kB / 422.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3155, allocations: 0 / 422.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of Templates: time 0.008293/0.3237, allocations: 5.391 MB / 427.8 MB, free: 3.961 MB / 298.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@2/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