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.IdealTriacCircuit.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001037, allocations: 177.3 kB / 16.71 MB, free: 5.09 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.292/1.292, allocations: 225.7 MB / 243.2 MB, free: 8.438 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.0008055/0.0008058, allocations: 81.89 kB / 294.3 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002122/0.0002123, allocations: 4 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2203, allocations: 50.43 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002205/0.2225, allocations: 2.48 MB / 407.1 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007751/0.2233, allocations: 0.6877 MB / 407.7 MB, free: 28.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.2234, allocations: 7.938 kB / 407.8 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.888e-05/0.2235, allocations: 36.53 kB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.2236, allocations: 93.17 kB / 407.9 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.2238, allocations: 85 kB / 408 MB, free: 27.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.224, allocations: 382.3 kB / 408.3 MB, free: 27.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.2242, allocations: 119.4 kB / 408.5 MB, free: 27.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.2243, allocations: 126.2 kB / 408.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.2244, allocations: 135.3 kB / 408.7 MB, free: 27.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.247e-05/0.2245, allocations: 16 kB / 408.7 MB, free: 27.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.849e-05/0.2245, allocations: 16 kB / 408.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.81e-05/0.2246, allocations: 51.77 kB / 408.8 MB, free: 27.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.2247, allocations: 176.8 kB / 409 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.2249, allocations: 396 kB / 409.4 MB, free: 26.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2249, allocations: 2.781 kB / 409.4 MB, free: 26.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.2249, allocations: 0 / 409.4 MB, free: 26.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.2249, allocations: 0 / 409.4 MB, free: 26.5 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.000673/0.2256, allocations: 0.5779 MB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.353e-05/0.2257, allocations: 8.031 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.707e-05/0.2257, allocations: 40.56 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.2259, allocations: 271.6 kB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2259, allocations: 20.94 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/0.226, allocations: 36.3 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003853/0.2264, allocations: 284.9 kB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.2264, allocations: 0 / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.2264, allocations: 12 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2264, allocations: 4 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003293/0.2268, allocations: 214.1 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.228, allocations: 1.168 MB / 412 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003932/0.2284, allocations: 223.5 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.2286, allocations: 144.8 kB / 412.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.2286, allocations: 0 / 412.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002443/0.2289, allocations: 183.7 kB / 412.5 MB, free: 23.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.193e-06/0.2289, allocations: 0 / 412.5 MB, free: 23.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001157/0.2301, allocations: 0.5135 MB / 413 MB, free: 22.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.2301, allocations: 136.5 kB / 413.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.2303, allocations: 244.9 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.2303, allocations: 25.7 kB / 413.4 MB, free: 22.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.369e-05/0.2304, allocations: 172.5 kB / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.2304, allocations: 67 kB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.026e-05/0.2304, allocations: 4 kB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.167e-05/0.2305, allocations: 338.8 kB / 414 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.2306, allocations: 75.97 kB / 414.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.2308, allocations: 126.6 kB / 414.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.231, allocations: 174.1 kB / 414.4 MB, free: 21.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.231, allocations: 3.984 kB / 414.4 MB, free: 21.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003967/0.2314, allocations: 298 kB / 414.7 MB, free: 20.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.2315, allocations: 4 kB / 414.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2315, allocations: 4 kB / 414.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/0.2318, allocations: 96.72 kB / 414.8 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.2319, allocations: 27.98 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.2335, allocations: 1.948 MB / 416.7 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.2337, allocations: 39.77 kB / 416.8 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.2337, allocations: 4 kB / 416.8 MB, free: 18.61 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.0001137/0.2339, allocations: 145.9 kB / 416.9 MB, free: 18.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.109e-05/0.2339, allocations: 23.72 kB / 416.9 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.2339, allocations: 34.17 kB / 417 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.234, allocations: 3.938 kB / 417 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.234, allocations: 112 / 417 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.234, allocations: 7.938 kB / 417 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007116/0.2347, allocations: 0.7686 MB / 417.8 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2347, allocations: 8 kB / 417.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.2348, allocations: 27.86 kB / 417.8 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002139/0.235, allocations: 84.8 kB / 417.9 MB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.2351, allocations: 4 kB / 417.9 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/0.2365, allocations: 1.932 MB / 419.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2366, allocations: 3.938 kB / 419.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005701/0.2371, allocations: 458.9 kB / 420.3 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.2372, allocations: 128.8 kB / 420.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.343e-05/0.2373, allocations: 4 kB / 420.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.2375, allocations: 27.92 kB / 420.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.2376, allocations: 31.89 kB / 420.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2376, allocations: 7.984 kB / 420.5 MB, free: 14.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000146/0.2378, allocations: 176.5 kB / 420.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2378, allocations: 4 kB / 420.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003827/0.2382, allocations: 91.84 kB / 420.7 MB, free: 14.41 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.0001093/0.2383, allocations: 107.2 kB / 420.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005189/0.2388, allocations: 361.5 kB / 421.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2388, allocations: 4 kB / 421.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003102/0.2391, allocations: 258.6 kB / 421.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.2395, allocations: 68.91 kB / 421.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009141/0.2405, allocations: 0.7307 MB / 422.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.2407, allocations: 0.7677 MB / 423 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.524e-05/0.2408, allocations: 18.3 kB / 423 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.948e-05/0.2408, allocations: 23.44 kB / 423 MB, free: 12.01 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.2408, allocations: 0 / 423 MB, free: 12.01 MB / 298.7 MB Notification: Performance of Templates: time 0.007301/0.2482, allocations: 4.41 MB / 427.5 MB, free: 7.645 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/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