Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009251/0.0009251, allocations: 179.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 225.7 MB / 243.2 MB, free: 8.535 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007934/0.0007934, allocations: 95.61 kB / 294.4 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002661/0.0002661, allocations: 11.94 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2333, allocations: 50.4 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.002971/0.2363, allocations: 3.501 MB / 408.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.2376, allocations: 1.054 MB / 409.1 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.2378, allocations: 8 kB / 409.1 MB, free: 26.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.238, allocations: 59.52 kB / 409.2 MB, free: 26.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.2382, allocations: 163 kB / 409.4 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.2386, allocations: 190.6 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004534/0.239, allocations: 0.7509 MB / 410.3 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.2393, allocations: 166.2 kB / 410.5 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.2395, allocations: 251 kB / 410.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002608/0.2398, allocations: 310.7 kB / 411 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.2398, allocations: 40 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.391e-05/0.2399, allocations: 32 kB / 411.1 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.97e-05/0.24, allocations: 115.4 kB / 411.2 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.2402, allocations: 300.2 kB / 411.5 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004467/0.2407, allocations: 0.7745 MB / 412.3 MB, free: 23.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2407, allocations: 3.938 kB / 412.3 MB, free: 23.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2407, allocations: 0 / 412.3 MB, free: 23.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2407, allocations: 0 / 412.3 MB, free: 23.61 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002139/0.2428, allocations: 0.9916 MB / 413.2 MB, free: 22.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2429, allocations: 19.97 kB / 413.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.838e-05/0.243, allocations: 56.28 kB / 413.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.2434, allocations: 410 kB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.2434, allocations: 29.38 kB / 413.8 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.497e-05/0.2435, allocations: 36.38 kB / 413.8 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.2448, allocations: 0.6383 MB / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.2448, allocations: 0 / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/0.2448, allocations: 16 kB / 414.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2449, allocations: 8 kB / 414.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.2465, allocations: 0.7065 MB / 415.2 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002912/0.2494, allocations: 2.211 MB / 417.4 MB, free: 18.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003456/0.2529, allocations: 0.9878 MB / 418.4 MB, free: 17.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008806/0.2538, allocations: 442.4 kB / 418.8 MB, free: 16.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.689e-05/0.2538, allocations: 4.328 kB / 418.8 MB, free: 16.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000998/0.2548, allocations: 466.6 kB / 419.2 MB, free: 16.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.735e-06/0.2548, allocations: 4 kB / 419.3 MB, free: 16.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.01283/0.2677, allocations: 2.645 MB / 421.9 MB, free: 13.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.2678, allocations: 81.11 kB / 422 MB, free: 13.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004202/0.2682, allocations: 406 kB / 422.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.74e-05/0.2682, allocations: 33.7 kB / 422.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.2684, allocations: 228.6 kB / 422.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.562e-05/0.2685, allocations: 134.1 kB / 422.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.738e-05/0.2685, allocations: 4 kB / 422.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.2686, allocations: 366.7 kB / 423.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008091/0.2694, allocations: 328.6 kB / 423.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007781/0.2702, allocations: 378.1 kB / 423.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.2717, allocations: 0.6655 MB / 424.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2717, allocations: 0 / 424.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002196/0.2739, allocations: 0.9788 MB / 425.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.661e-05/0.274, allocations: 29.7 kB / 425.5 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.274, allocations: 0 / 425.5 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.2751, allocations: 424.5 kB / 425.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000443/0.2755, allocations: 103.9 kB / 426 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006906/0.2825, allocations: 3.502 MB / 429.5 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000708/0.2832, allocations: 111.6 kB / 429.6 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.2833, allocations: 15.98 kB / 429.6 MB, free: 5.723 MB / 298.7 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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * 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.0002323/0.2835, allocations: 169.8 kB / 429.8 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.031e-05/0.2836, allocations: 47.44 kB / 429.8 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.505e-05/0.2837, allocations: 52.47 kB / 429.9 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.2837, allocations: 7.938 kB / 429.9 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2837, allocations: 0 / 429.9 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2837, allocations: 3.984 kB / 429.9 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005241/0.2842, allocations: 0.6067 MB / 430.5 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2842, allocations: 0 / 430.5 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004504/0.2847, allocations: 99.86 kB / 430.6 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009904/0.2857, allocations: 424.5 kB / 431 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.2857, allocations: 15.98 kB / 431 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006696/0.2924, allocations: 3.486 MB / 434.5 MB, free: 0.625 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2925, allocations: 0 / 434.5 MB, free: 0.625 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005611/0.2981, allocations: 1.646 MB / 436.2 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.2984, allocations: 188.4 kB / 436.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.951e-05/0.2985, allocations: 8 kB / 436.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005712/0.2991, allocations: 87.92 kB / 436.4 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.2992, allocations: 59.8 kB / 436.5 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.034e-05/0.2993, allocations: 15.98 kB / 436.5 MB, free: 14.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003099/0.2996, allocations: 287.2 kB / 436.8 MB, free: 14.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2996, allocations: 0 / 436.8 MB, free: 14.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005773/0.3002, allocations: 179.8 kB / 437 MB, free: 14.13 MB / 314.7 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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0001493/0.3003, allocations: 112.6 kB / 437.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002585/0.3029, allocations: 1.013 MB / 438.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.303, allocations: 8 kB / 438.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.3044, allocations: 0.592 MB / 438.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.3049, allocations: 85.38 kB / 438.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003161/0.3081, allocations: 1.477 MB / 440.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.3085, allocations: 0.8358 MB / 441.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002466/0.3088, allocations: 51.38 kB / 441.1 MB, free: 9.871 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.3089, allocations: 23.44 kB / 441.2 MB, free: 9.848 MB / 314.7 MB Notification: Performance of SimCode: time 6.91e-07/0.3089, allocations: 4 kB / 441.2 MB, free: 9.844 MB / 314.7 MB Notification: Performance of Templates: time 0.01965/0.3285, allocations: 12.67 MB / 453.8 MB, free: 13.23 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches