Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.1 MB / 223.8 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008758/0.0008757, allocations: 107.2 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007953/0.0007953, allocations: 39.94 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.1955, allocations: 46.61 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003458/0.199, allocations: 2.926 MB / 376.7 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.2001, allocations: 0.7656 MB / 377.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.2004, allocations: 5.344 kB / 377.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.2006, allocations: 43.53 kB / 377.6 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.2008, allocations: 82.03 kB / 377.6 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.201, allocations: 86.12 kB / 377.7 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003114/0.2013, allocations: 394.3 kB / 378.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.2015, allocations: 111.9 kB / 378.2 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.2017, allocations: 130.1 kB / 378.3 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.2019, allocations: 153.9 kB / 378.5 MB, free: 42.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.243e-05/0.2019, allocations: 19.72 kB / 378.5 MB, free: 42.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.934e-05/0.202, allocations: 20.47 kB / 378.5 MB, free: 42.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.372e-05/0.202, allocations: 59.33 kB / 378.6 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.2021, allocations: 160.5 kB / 378.7 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.2024, allocations: 403.7 kB / 379.1 MB, free: 41.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2024, allocations: 1.188 kB / 379.1 MB, free: 41.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2024, allocations: 0 / 379.1 MB, free: 41.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.2025, allocations: 3.938 kB / 379.1 MB, free: 41.78 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.0008339/0.2033, allocations: 0.6262 MB / 379.8 MB, free: 41.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.2034, allocations: 9.156 kB / 379.8 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.795e-05/0.2034, allocations: 34.09 kB / 379.8 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.2037, allocations: 282.6 kB / 380.1 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.2037, allocations: 19.16 kB / 380.1 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.2037, allocations: 32.09 kB / 380.1 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003903/0.2041, allocations: 293.3 kB / 380.4 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.2042, allocations: 0 / 380.4 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.2042, allocations: 10.28 kB / 380.4 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2042, allocations: 6.906 kB / 380.4 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.2045, allocations: 202.4 kB / 380.6 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.2059, allocations: 1.155 MB / 381.8 MB, free: 39.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004306/0.2063, allocations: 230.5 kB / 382 MB, free: 39.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.2066, allocations: 138.5 kB / 382.2 MB, free: 39.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.2066, allocations: 6.094 kB / 382.2 MB, free: 39.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002618/0.2069, allocations: 167.2 kB / 382.3 MB, free: 39.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.2069, allocations: 0 / 382.3 MB, free: 39.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001263/0.2082, allocations: 0.5173 MB / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.2082, allocations: 131.8 kB / 383 MB, free: 38.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.2085, allocations: 240.3 kB / 383.2 MB, free: 38.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2085, allocations: 35.7 kB / 383.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/0.2086, allocations: 171.4 kB / 383.4 MB, free: 38.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.2086, allocations: 71.19 kB / 383.5 MB, free: 38.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.473e-05/0.2087, allocations: 48.36 kB / 383.5 MB, free: 38.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.825e-05/0.2088, allocations: 328.2 kB / 383.8 MB, free: 37.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.2089, allocations: 75.66 kB / 383.9 MB, free: 37.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.2091, allocations: 123.7 kB / 384 MB, free: 37.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.2093, allocations: 175.8 kB / 384.2 MB, free: 37.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2094, allocations: 0 / 384.2 MB, free: 37.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004291/0.2098, allocations: 293 kB / 384.5 MB, free: 37.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2098, allocations: 4.219 kB / 384.5 MB, free: 37.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2098, allocations: 1.531 kB / 384.5 MB, free: 37.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.2102, allocations: 88.42 kB / 384.6 MB, free: 37.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.2103, allocations: 32.8 kB / 384.6 MB, free: 37.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.212, allocations: 1.946 MB / 386.6 MB, free: 35.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001899/0.2122, allocations: 31.45 kB / 386.6 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.2122, allocations: 10.66 kB / 386.6 MB, free: 35.71 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.0001107/0.2123, allocations: 145.8 kB / 386.7 MB, free: 35.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.2124, allocations: 24.06 kB / 386.8 MB, free: 35.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.505e-05/0.2124, allocations: 36.06 kB / 386.8 MB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2124, allocations: 6.719 kB / 386.8 MB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.2125, allocations: 8 kB / 386.8 MB, free: 35.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2125, allocations: 5.703 kB / 386.8 MB, free: 35.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007187/0.2132, allocations: 0.7622 MB / 387.6 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2132, allocations: 0 / 387.6 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.2133, allocations: 26.73 kB / 387.6 MB, free: 34.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000224/0.2135, allocations: 94.91 kB / 387.7 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.2136, allocations: 2.219 kB / 387.7 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.215, allocations: 1.933 MB / 389.6 MB, free: 32.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.215, allocations: 4.031 kB / 389.6 MB, free: 32.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003504/0.2186, allocations: 4.019 MB / 393.7 MB, free: 28.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.115e-05/0.2186, allocations: 120.8 kB / 393.8 MB, free: 28.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.2187, allocations: 8 kB / 393.8 MB, free: 28.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.2189, allocations: 16.11 kB / 393.8 MB, free: 28.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.176e-05/0.219, allocations: 35.95 kB / 393.8 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.219, allocations: 4 kB / 393.8 MB, free: 28.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000108/0.2191, allocations: 176.5 kB / 394 MB, free: 28.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.2191, allocations: 4.047 kB / 394 MB, free: 28.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005246/0.2196, allocations: 131.7 kB / 394.2 MB, free: 28.16 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 9.405e-05/0.2197, allocations: 113.8 kB / 394.3 MB, free: 28.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000501/0.2202, allocations: 342.5 kB / 394.6 MB, free: 27.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2202, allocations: 0 / 394.6 MB, free: 27.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.2205, allocations: 266.7 kB / 394.9 MB, free: 27.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.2209, allocations: 60.33 kB / 394.9 MB, free: 27.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.222, allocations: 1.06 MB / 396 MB, free: 26.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2222, allocations: 0.7678 MB / 396.7 MB, free: 25.46 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.315e-05/0.2223, allocations: 22.28 kB / 396.8 MB, free: 25.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.938e-05/0.2223, allocations: 19.44 kB / 396.8 MB, free: 25.41 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2223, allocations: 4 kB / 396.8 MB, free: 25.41 MB / 298.7 MB Notification: Performance of Templates: time 0.00708/0.2294, allocations: 5.388 MB / 402.2 MB, free: 20.05 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches