Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00104/0.00104, allocations: 200.4 kB / 17.38 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 226.6 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000749/0.0007489, allocations: 99.56 kB / 296.8 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003868/0.000387, allocations: 4 kB / 356.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.204/0.2044, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00206/0.2065, allocations: 2.499 MB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008484/0.2074, allocations: 0.7347 MB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.2075, allocations: 4 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.2076, allocations: 39.7 kB / 411.3 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.2077, allocations: 84.36 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.208, allocations: 61.62 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.2082, allocations: 374.3 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.2084, allocations: 116.8 kB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.2086, allocations: 131.5 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.2087, allocations: 131.4 kB / 412.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.2088, allocations: 16 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.383e-05/0.2088, allocations: 19.98 kB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.616e-05/0.2089, allocations: 59.75 kB / 412.3 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.209, allocations: 169 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002008/0.2092, allocations: 316.1 kB / 412.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2092, allocations: 0 / 412.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2092, allocations: 0 / 412.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.2092, allocations: 0 / 412.8 MB, free: 22.96 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.000716/0.21, allocations: 0.5739 MB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.21, allocations: 12.03 kB / 413.3 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.2102, allocations: 48.55 kB / 413.4 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.2104, allocations: 283.6 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.2104, allocations: 20.94 kB / 413.7 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.2105, allocations: 24.38 kB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.2109, allocations: 288.9 kB / 414 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.2109, allocations: 0 / 414 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.2109, allocations: 12 kB / 414 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.2109, allocations: 8 kB / 414 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.2113, allocations: 206.1 kB / 414.2 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.2126, allocations: 1.164 MB / 415.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.213, allocations: 226.6 kB / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.2133, allocations: 148.1 kB / 415.7 MB, free: 19.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.2133, allocations: 4 kB / 415.8 MB, free: 19.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.2136, allocations: 174.6 kB / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.2136, allocations: 0 / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001161/0.2147, allocations: 0.5186 MB / 416.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.2148, allocations: 132.5 kB / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.215, allocations: 240.9 kB / 416.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.215, allocations: 37.73 kB / 416.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.2151, allocations: 160.5 kB / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.03e-05/0.2151, allocations: 74.98 kB / 417.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/0.2151, allocations: 8 kB / 417.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.641e-05/0.2152, allocations: 326.8 kB / 417.4 MB, free: 18.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.2153, allocations: 75.91 kB / 417.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.2155, allocations: 125.1 kB / 417.6 MB, free: 17.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.2157, allocations: 171.3 kB / 417.8 MB, free: 17.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2157, allocations: 0 / 417.8 MB, free: 17.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004054/0.2162, allocations: 294.1 kB / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.2162, allocations: 8 kB / 418.1 MB, free: 17.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2162, allocations: 0 / 418.1 MB, free: 17.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003145/0.2165, allocations: 96.73 kB / 418.2 MB, free: 17.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.2166, allocations: 32.02 kB / 418.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.2182, allocations: 1.94 MB / 420.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.2184, allocations: 35.73 kB / 420.2 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.2184, allocations: 4 kB / 420.2 MB, free: 15.08 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.2186, allocations: 161.8 kB / 420.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.2186, allocations: 27.72 kB / 420.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.06e-05/0.2187, allocations: 30.17 kB / 420.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2187, allocations: 7.938 kB / 420.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.2187, allocations: 0 / 420.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2187, allocations: 3.984 kB / 420.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.2194, allocations: 0.7713 MB / 421.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2194, allocations: 4 kB / 421.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.2195, allocations: 24.03 kB / 421.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002165/0.2197, allocations: 89.83 kB / 421.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.2198, allocations: 8 kB / 421.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/0.2213, allocations: 1.939 MB / 423.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2213, allocations: 0 / 423.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005256/0.2218, allocations: 461.4 kB / 423.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.731e-05/0.2219, allocations: 120.9 kB / 423.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.222, allocations: 7.938 kB / 423.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.2222, allocations: 27.92 kB / 423.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.537e-05/0.2222, allocations: 31.94 kB / 423.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.2223, allocations: 12 kB / 423.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001152/0.2224, allocations: 176.5 kB / 424 MB, free: 10.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2224, allocations: 0 / 424 MB, free: 10.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003882/0.2228, allocations: 87.84 kB / 424.1 MB, free: 10.87 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 9.754e-05/0.2229, allocations: 110.2 kB / 424.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005317/0.2234, allocations: 366.4 kB / 424.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2234, allocations: 0 / 424.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.2238, allocations: 260.8 kB / 424.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/0.2242, allocations: 58.97 kB / 424.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008809/0.2251, allocations: 0.7479 MB / 425.7 MB, free: 9.289 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.2252, allocations: 0.7752 MB / 426.4 MB, free: 8.488 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.793e-05/0.2253, allocations: 19.44 kB / 426.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2253, allocations: 0 / 426.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of Templates: time 0.00472/0.23, allocations: 4.608 MB / 431.1 MB, free: 3.875 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches