Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009893/0.000989, allocations: 94.25 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 227.7 MB / 246.8 MB, free: 9.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002383, allocations: 8 kB / 307.7 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1249, allocations: 51.52 MB / 359.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003421/0.1283, allocations: 2.606 MB / 361.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.1299, allocations: 0.7753 MB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.1301, allocations: 8 kB / 362.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.1303, allocations: 39.69 kB / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.1305, allocations: 79.31 kB / 362.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.1309, allocations: 99.86 kB / 362.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004344/0.1314, allocations: 394.2 kB / 363.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002847/0.1317, allocations: 115.9 kB / 363.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002587/0.1319, allocations: 127.5 kB / 363.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.1322, allocations: 139.3 kB / 363.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.1322, allocations: 12 kB / 363.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.883e-05/0.1323, allocations: 20 kB / 363.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.835e-05/0.1324, allocations: 59.69 kB / 363.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.1326, allocations: 172.9 kB / 363.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004397/0.133, allocations: 402.7 kB / 364.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.133, allocations: 0 / 364.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.133, allocations: 0 / 364.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.133, allocations: 0 / 364.3 MB, free: 8.031 MB / 302.1 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.0009944/0.134, allocations: 0.5779 MB / 364.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.1341, allocations: 15.97 kB / 364.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.1343, allocations: 52.47 kB / 364.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.1347, allocations: 284.8 kB / 365.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.138e-05/0.1348, allocations: 16.94 kB / 365.2 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.577e-05/0.1348, allocations: 28.36 kB / 365.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.1353, allocations: 292.8 kB / 365.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1354, allocations: 4 kB / 365.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.1354, allocations: 12 kB / 365.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.1354, allocations: 4 kB / 365.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004029/0.1358, allocations: 206.2 kB / 365.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.1376, allocations: 1.164 MB / 366.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/0.1381, allocations: 225.6 kB / 367.1 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.1384, allocations: 148.8 kB / 367.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.1385, allocations: 8 kB / 367.3 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003565/0.1388, allocations: 174.6 kB / 367.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.324e-06/0.1388, allocations: 0 / 367.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001537/0.1404, allocations: 0.522 MB / 368 MB, free: 4.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1405, allocations: 140.5 kB / 368.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.1408, allocations: 241 kB / 368.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.1408, allocations: 29.7 kB / 368.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1409, allocations: 176.3 kB / 368.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.754e-05/0.141, allocations: 70.98 kB / 368.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/0.1411, allocations: 25.72 kB / 368.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1412, allocations: 334.8 kB / 369 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.1414, allocations: 79.97 kB / 369.1 MB, free: 2.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.1416, allocations: 125.1 kB / 369.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.1419, allocations: 181.1 kB / 369.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1419, allocations: 0 / 369.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005056/0.1424, allocations: 290 kB / 369.6 MB, free: 2.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.1425, allocations: 8 kB / 369.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.425e-06/0.1425, allocations: 96 / 369.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003872/0.1429, allocations: 104.7 kB / 369.7 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.143, allocations: 23.98 kB / 369.8 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.1453, allocations: 1.94 MB / 371.7 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.1456, allocations: 35.89 kB / 371.7 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.1456, allocations: 4 kB / 371.8 MB, free: 72 kB / 302.1 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.318/0.4636, allocations: 146.1 kB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.4637, allocations: 24.31 kB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.4638, allocations: 31.02 kB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.4639, allocations: 6.781 kB / 372 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.4639, allocations: 1.438 kB / 372 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4639, allocations: 1.938 kB / 372 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.4653, allocations: 0.7756 MB / 372.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4654, allocations: 0.875 kB / 372.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.4655, allocations: 22.56 kB / 372.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003473/0.4659, allocations: 99.28 kB / 372.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.4659, allocations: 7.578 kB / 372.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002363/0.4683, allocations: 1.938 MB / 374.8 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.4683, allocations: 1 kB / 374.8 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008746/0.4692, allocations: 459.5 kB / 375.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.4694, allocations: 118.7 kB / 375.4 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.4694, allocations: 13.09 kB / 375.4 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.4696, allocations: 21.45 kB / 375.4 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.4698, allocations: 39.47 kB / 375.4 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.4698, allocations: 5.078 kB / 375.4 MB, free: 16.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002283/0.4701, allocations: 176.7 kB / 375.6 MB, free: 16.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4701, allocations: 0 / 375.6 MB, free: 16.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006309/0.4707, allocations: 96.33 kB / 375.7 MB, free: 16.82 MB / 302.1 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.0001933/0.4709, allocations: 103.5 kB / 375.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008322/0.4717, allocations: 360.6 kB / 376.2 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4718, allocations: 1.031 kB / 376.2 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004606/0.4722, allocations: 266.2 kB / 376.4 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.4727, allocations: 58.3 kB / 376.5 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.4743, allocations: 0.742 MB / 377.2 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.4746, allocations: 0.7662 MB / 378 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.4747, allocations: 22.64 kB / 378 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.026e-05/0.4748, allocations: 21.95 kB / 378 MB, free: 15.36 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4748, allocations: 0 / 378 MB, free: 15.36 MB / 302.1 MB Notification: Performance of Templates: time 0.01409/0.4889, allocations: 4.411 MB / 382.4 MB, free: 15.09 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches