Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001445, allocations: 96.77 kB / 17.58 MB, free: 5.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 191.9 kB / 18.51 MB, free: 4.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 55.92 kB / 280.7 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1459, allocations: 46.63 MB / 327.3 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007588/0.1536, allocations: 3.887 MB / 331.2 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002598/0.1562, allocations: 1.022 MB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003109/0.1565, allocations: 15.88 kB / 332.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000317/0.157, allocations: 79.2 kB / 332.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004014/0.1574, allocations: 170.5 kB / 332.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006757/0.1581, allocations: 207.6 kB / 332.7 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009462/0.159, allocations: 0.7551 MB / 333.4 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.1594, allocations: 173.2 kB / 333.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000453/0.1599, allocations: 295 kB / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004465/0.1604, allocations: 334.7 kB / 334.2 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.1605, allocations: 79.94 kB / 334.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.1606, allocations: 76 kB / 334.3 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.1608, allocations: 155.5 kB / 334.5 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003602/0.1612, allocations: 310.6 kB / 334.8 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008217/0.162, allocations: 0.7905 MB / 335.6 MB, free: 12.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.118e-05/0.162, allocations: 4 kB / 335.6 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.162, allocations: 0 / 335.6 MB, free: 12.12 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.1621, allocations: 0 / 335.6 MB, free: 12.12 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002695/0.1648, allocations: 0.9758 MB / 336.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.387e-05/0.1648, allocations: 12.03 kB / 336.6 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.165, allocations: 56.28 kB / 336.6 MB, free: 11.03 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006766/0.1657, allocations: 398 kB / 337 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.1657, allocations: 25.38 kB / 337.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.485e-05/0.1658, allocations: 40.12 kB / 337.1 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.1672, allocations: 0.563 MB / 337.7 MB, free: 9.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1672, allocations: 4 kB / 337.7 MB, free: 9.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.474e-05/0.1673, allocations: 15.98 kB / 337.7 MB, free: 9.926 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.1673, allocations: 8 kB / 337.7 MB, free: 9.918 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.169, allocations: 0.5777 MB / 338.3 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.1725, allocations: 2.012 MB / 340.3 MB, free: 7.234 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003524/0.1761, allocations: 0.7877 MB / 341.1 MB, free: 6.438 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009108/0.177, allocations: 361.3 kB / 341.4 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.176e-05/0.1771, allocations: 7.984 kB / 341.4 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001034/0.1781, allocations: 411.4 kB / 341.8 MB, free: 5.656 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 4.949e-06/0.1781, allocations: 0 / 341.8 MB, free: 5.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009563/0.1877, allocations: 1.798 MB / 343.6 MB, free: 3.828 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.529e-05/0.1878, allocations: 81.11 kB / 343.7 MB, free: 3.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006271/0.1885, allocations: 385.7 kB / 344.1 MB, free: 3.348 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.881e-05/0.1885, allocations: 33.7 kB / 344.1 MB, free: 3.309 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.1887, allocations: 220.6 kB / 344.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1889, allocations: 130.1 kB / 344.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.1891, allocations: 78.06 kB / 344.5 MB, free: 2.871 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1892, allocations: 346.8 kB / 344.9 MB, free: 2.523 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008236/0.1901, allocations: 268.6 kB / 345.1 MB, free: 2.262 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/0.1909, allocations: 317.8 kB / 345.4 MB, free: 1.941 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.1925, allocations: 0.5446 MB / 346 MB, free: 1.383 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1925, allocations: 0 / 346 MB, free: 1.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004424/0.1969, allocations: 1.056 MB / 347 MB, free: 320 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.75e-05/0.197, allocations: 33.69 kB / 347.1 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.197, allocations: 0 / 347.1 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.1983, allocations: 396.5 kB / 347.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/0.1987, allocations: 91.86 kB / 347.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008453/0.2072, allocations: 3.669 MB / 351.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007529/0.208, allocations: 87.66 kB / 351.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-05/0.2081, allocations: 12 kB / 351.3 MB, free: 11.88 MB / 302.1 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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * 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.0003518/0.2084, allocations: 175.1 kB / 351.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.104e-05/0.2085, allocations: 47.38 kB / 351.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.2086, allocations: 52.38 kB / 351.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2086, allocations: 4 kB / 351.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2087, allocations: 0 / 351.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.2087, allocations: 7.984 kB / 351.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000769/0.2094, allocations: 0.5795 MB / 352.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.148e-06/0.2095, allocations: 3.938 kB / 352.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004162/0.2099, allocations: 75.94 kB / 352.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.211, allocations: 404.5 kB / 352.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.211, allocations: 4 kB / 352.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008022/0.2191, allocations: 3.662 MB / 356.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2191, allocations: 0 / 356.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004384/0.2235, allocations: 1.262 MB / 357.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.2238, allocations: 176.5 kB / 357.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.893e-05/0.2239, allocations: 15.94 kB / 357.8 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005197/0.2244, allocations: 63.92 kB / 357.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.2246, allocations: 51.88 kB / 357.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/0.2246, allocations: 11.98 kB / 357.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003351/0.225, allocations: 275.2 kB / 358.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.225, allocations: 0 / 358.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007206/0.2257, allocations: 167.8 kB / 358.3 MB, free: 4.633 MB / 302.1 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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.00025/0.226, allocations: 122.5 kB / 358.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.2285, allocations: 0.8916 MB / 359.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.2286, allocations: 0 / 359.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001397/0.23, allocations: 0.5334 MB / 359.9 MB, free: 3.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/0.2305, allocations: 77.47 kB / 359.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/0.2337, allocations: 1.176 MB / 361.1 MB, free: 1.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.2341, allocations: 0.8239 MB / 361.9 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.2343, allocations: 39.28 kB / 362 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.813e-05/0.2344, allocations: 31.44 kB / 362 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2344, allocations: 0 / 362 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of Templates: time 0.02299/0.2574, allocations: 13.16 MB / 375.2 MB, free: 3.676 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches