Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 201.6 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007553/0.0007554, allocations: 101.3 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002786, allocations: 4 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3017, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002808/0.3046, allocations: 2.497 MB / 414.6 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.306, allocations: 0.9742 MB / 415.5 MB, free: 22.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.3062, allocations: 4 kB / 415.5 MB, free: 22.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.3064, allocations: 35.69 kB / 415.6 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.3066, allocations: 83.31 kB / 415.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.3069, allocations: 87.88 kB / 415.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.3072, allocations: 386.3 kB / 416.1 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.3075, allocations: 119.9 kB / 416.2 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.3078, allocations: 135.4 kB / 416.4 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.308, allocations: 135.3 kB / 416.5 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.308, allocations: 16 kB / 416.5 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.996e-05/0.3081, allocations: 23.94 kB / 416.5 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.191e-05/0.3082, allocations: 47.77 kB / 416.6 MB, free: 21.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.3083, allocations: 180.9 kB / 416.8 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.3087, allocations: 392.1 kB / 417.1 MB, free: 20.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3087, allocations: 0 / 417.1 MB, free: 20.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.476e-06/0.3087, allocations: 0 / 417.1 MB, free: 20.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.3087, allocations: 7.938 kB / 417.1 MB, free: 20.73 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.0009957/0.3097, allocations: 0.5778 MB / 417.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.3098, allocations: 8.031 kB / 417.7 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.31, allocations: 48.5 kB / 417.8 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.3103, allocations: 283.6 kB / 418.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.3103, allocations: 20.94 kB / 418.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.3104, allocations: 24.38 kB / 418.1 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004724/0.3109, allocations: 296.8 kB / 418.4 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3109, allocations: 0 / 418.4 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.3109, allocations: 12 kB / 418.4 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.3109, allocations: 4 kB / 418.4 MB, free: 19.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.3113, allocations: 206.2 kB / 418.6 MB, free: 19.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.3127, allocations: 1.156 MB / 419.8 MB, free: 17.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004739/0.3132, allocations: 222.6 kB / 420 MB, free: 17.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002723/0.3135, allocations: 156.7 kB / 420.1 MB, free: 17.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.3135, allocations: 0 / 420.1 MB, free: 17.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000327/0.3138, allocations: 177.2 kB / 420.3 MB, free: 17.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.212e-06/0.3139, allocations: 0 / 420.3 MB, free: 17.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001292/0.3152, allocations: 0.5109 MB / 420.8 MB, free: 16.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.3152, allocations: 140.4 kB / 421 MB, free: 16.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.3155, allocations: 244.9 kB / 421.2 MB, free: 16.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.3155, allocations: 29.7 kB / 421.2 MB, free: 16.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.83e-05/0.3156, allocations: 168.5 kB / 421.4 MB, free: 16.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.3156, allocations: 74.88 kB / 421.5 MB, free: 16.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.3156, allocations: 4 kB / 421.5 MB, free: 16.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.3157, allocations: 342.8 kB / 421.8 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.3159, allocations: 67.97 kB / 421.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.316, allocations: 121.1 kB / 422 MB, free: 15.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.3163, allocations: 174 kB / 422.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3163, allocations: 0 / 422.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004027/0.3167, allocations: 292.8 kB / 422.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3167, allocations: 8 kB / 422.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3167, allocations: 7.984 kB / 422.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003192/0.3171, allocations: 84.75 kB / 422.5 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.3172, allocations: 31.98 kB / 422.6 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.3189, allocations: 1.94 MB / 424.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.3191, allocations: 39.77 kB / 424.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.3191, allocations: 7.984 kB / 424.6 MB, free: 12.84 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,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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.0001478/0.3193, allocations: 152.8 kB / 424.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.3193, allocations: 23.72 kB / 424.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.253e-05/0.3194, allocations: 34.17 kB / 424.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3194, allocations: 12 kB / 424.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.3194, allocations: 0 / 424.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3194, allocations: 4 kB / 424.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007638/0.3202, allocations: 0.7672 MB / 425.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.3202, allocations: 4 kB / 425.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.3203, allocations: 31.95 kB / 425.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002138/0.3205, allocations: 84.75 kB / 425.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.3205, allocations: 0 / 425.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/0.3221, allocations: 1.936 MB / 427.6 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3222, allocations: 0 / 427.6 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005562/0.3227, allocations: 460.8 kB / 428 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.872e-05/0.3228, allocations: 120.8 kB / 428.2 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.3228, allocations: 7.984 kB / 428.2 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.323, allocations: 31.98 kB / 428.2 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.543e-05/0.3231, allocations: 27.95 kB / 428.2 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.3232, allocations: 4 kB / 428.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001228/0.3233, allocations: 176.5 kB / 428.4 MB, free: 8.746 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3233, allocations: 0 / 428.4 MB, free: 8.746 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003809/0.3237, allocations: 91.94 kB / 428.5 MB, free: 8.656 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.0001563/0.3238, allocations: 124.8 kB / 428.6 MB, free: 8.527 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.3244, allocations: 358.3 kB / 429 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3245, allocations: 0 / 429 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.3248, allocations: 274.8 kB / 429.2 MB, free: 7.883 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.3252, allocations: 48.45 kB / 429.3 MB, free: 7.836 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.3262, allocations: 0.7419 MB / 430 MB, free: 7.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.3265, allocations: 0.7635 MB / 430.8 MB, free: 6.281 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.696e-05/0.3266, allocations: 22.28 kB / 430.8 MB, free: 6.262 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.029e-05/0.3266, allocations: 19.44 kB / 430.8 MB, free: 6.242 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3266, allocations: 0 / 430.8 MB, free: 6.242 MB / 298.7 MB Notification: Performance of Templates: time 0.007912/0.3346, allocations: 4.424 MB / 435.3 MB, free: 1.867 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches