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.001263/0.001263, allocations: 107.8 kB / 17.16 MB, free: 6.312 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.001389/0.001389, allocations: 194 kB / 18.08 MB, free: 5.406 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.506/1.506, allocations: 205.1 MB / 223.9 MB, free: 12.53 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.00113/0.00113, allocations: 51.92 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1106, allocations: 46.62 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005373/0.116, allocations: 3.928 MB / 330.5 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1179, allocations: 1.018 MB / 331.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.1182, allocations: 11.94 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000226/0.1184, allocations: 55.53 kB / 331.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.1187, allocations: 150.8 kB / 331.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.1192, allocations: 175.8 kB / 331.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006078/0.1198, allocations: 0.7121 MB / 332.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.1201, allocations: 137.8 kB / 332.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002956/0.1204, allocations: 255 kB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003156/0.1207, allocations: 306.7 kB / 333.3 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.777e-05/0.1208, allocations: 36 kB / 333.4 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.857e-05/0.1209, allocations: 36 kB / 333.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.121, allocations: 115.5 kB / 333.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.1213, allocations: 274.6 kB / 333.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006708/0.1219, allocations: 0.7591 MB / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.122, allocations: 4 kB / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.122, allocations: 0 / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.122, allocations: 0 / 334.5 MB, free: 12.91 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.002538/0.1245, allocations: 0.9797 MB / 335.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1246, allocations: 8.031 kB / 335.5 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.1247, allocations: 56.28 kB / 335.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.1252, allocations: 398 kB / 336 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.036e-05/0.1252, allocations: 29.38 kB / 336 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.783e-05/0.1253, allocations: 40.12 kB / 336 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.1267, allocations: 0.5591 MB / 336.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1267, allocations: 0 / 336.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.559e-05/0.1268, allocations: 19.98 kB / 336.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.1268, allocations: 8 kB / 336.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0017/0.1285, allocations: 0.5738 MB / 337.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00355/0.1321, allocations: 2.016 MB / 339.2 MB, free: 8.023 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003634/0.1357, allocations: 0.7916 MB / 340 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008991/0.1366, allocations: 365.3 kB / 340.4 MB, free: 6.863 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.1367, allocations: 7.984 kB / 340.4 MB, free: 6.855 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001118/0.1378, allocations: 415.2 kB / 340.8 MB, free: 6.434 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.114e-06/0.1378, allocations: 0 / 340.8 MB, free: 6.434 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009557/0.1474, allocations: 1.794 MB / 342.6 MB, free: 4.609 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/0.1475, allocations: 81.11 kB / 342.7 MB, free: 4.512 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005513/0.1481, allocations: 385.7 kB / 343 MB, free: 4.121 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.1481, allocations: 33.7 kB / 343.1 MB, free: 4.082 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.1483, allocations: 220.6 kB / 343.3 MB, free: 3.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.1485, allocations: 130.1 kB / 343.4 MB, free: 3.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.1487, allocations: 70.06 kB / 343.5 MB, free: 3.652 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1488, allocations: 354.8 kB / 343.8 MB, free: 3.297 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008176/0.1497, allocations: 268.6 kB / 344.1 MB, free: 3.035 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008426/0.1505, allocations: 313.8 kB / 344.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.152, allocations: 0.5407 MB / 344.9 MB, free: 2.164 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.152, allocations: 0 / 344.9 MB, free: 2.164 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004746/0.1567, allocations: 1.06 MB / 346 MB, free: 1.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.059e-05/0.1568, allocations: 37.69 kB / 346 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.1568, allocations: 0 / 346 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.158, allocations: 396.5 kB / 346.4 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004203/0.1584, allocations: 79.86 kB / 346.5 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008119/0.1666, allocations: 3.319 MB / 349.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006875/0.1673, allocations: 83.66 kB / 349.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.315e-05/0.1673, allocations: 16 kB / 349.9 MB, free: 13.03 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.0002867/0.1676, allocations: 175.1 kB / 350.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.345e-05/0.1677, allocations: 43.53 kB / 350.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1678, allocations: 52.31 kB / 350.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1679, allocations: 4 kB / 350.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1679, allocations: 0 / 350.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.1679, allocations: 7.984 kB / 350.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006896/0.1686, allocations: 0.5872 MB / 350.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1686, allocations: 4 kB / 350.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000412/0.169, allocations: 75.88 kB / 350.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.1701, allocations: 401.4 kB / 351.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.1702, allocations: 11.92 kB / 351.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007845/0.178, allocations: 3.297 MB / 354.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.1781, allocations: 0 / 354.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00468/0.1828, allocations: 1.262 MB / 355.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.1831, allocations: 172.5 kB / 356 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.1833, allocations: 11.94 kB / 356 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005749/0.1839, allocations: 63.92 kB / 356.1 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.1841, allocations: 51.94 kB / 356.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-05/0.1841, allocations: 11.98 kB / 356.1 MB, free: 6.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003791/0.1845, allocations: 275.2 kB / 356.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1845, allocations: 0 / 356.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007499/0.1853, allocations: 175.6 kB / 356.6 MB, free: 6.145 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.0002455/0.1855, allocations: 107.2 kB / 356.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002639/0.1882, allocations: 0.8721 MB / 357.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1882, allocations: 0 / 357.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.1897, allocations: 0.5372 MB / 358.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.1904, allocations: 81.59 kB / 358.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003486/0.1939, allocations: 1.32 MB / 359.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.1944, allocations: 0.8313 MB / 360.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002764/0.1947, allocations: 43.27 kB / 360.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.1948, allocations: 35.36 kB / 360.4 MB, free: 2.227 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1948, allocations: 0 / 360.4 MB, free: 2.227 MB / 302.1 MB Notification: Performance of Templates: time 0.02316/0.218, allocations: 12.29 MB / 372.7 MB, free: 5.93 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches