Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 110 kB / 17.68 MB, free: 5.332 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.001888/0.001888, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 51.08 kB / 302 MB, free: 5.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09358, allocations: 49.45 MB / 351.5 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003973/0.09758, allocations: 2.909 MB / 354.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.09881, allocations: 0.7285 MB / 355.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.09896, allocations: 4 kB / 355.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.09914, allocations: 55.39 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.09933, allocations: 103.1 kB / 355.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.09964, allocations: 99.83 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.1, allocations: 402.3 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002638/0.1003, allocations: 143.2 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.1005, allocations: 143.5 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.1007, allocations: 159.3 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.193e-05/0.1008, allocations: 40 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.547e-05/0.1009, allocations: 39.94 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.067e-05/0.101, allocations: 79.75 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.1011, allocations: 179.2 kB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.1015, allocations: 422.6 kB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1015, allocations: 0 / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1015, allocations: 7.875 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1015, allocations: 0 / 357 MB, free: 14.14 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.0009521/0.1025, allocations: 0.6206 MB / 357.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.1025, allocations: 12.03 kB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.1026, allocations: 32.56 kB / 357.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.103, allocations: 287.6 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.103, allocations: 24.94 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.1031, allocations: 24.38 kB / 358 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.1035, allocations: 292.8 kB / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.1036, allocations: 3.938 kB / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.1036, allocations: 12 kB / 358.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1036, allocations: 4 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.104, allocations: 206.1 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.1057, allocations: 1.137 MB / 359.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.1062, allocations: 218.6 kB / 359.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.1065, allocations: 148.8 kB / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.1066, allocations: 3.984 kB / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.1069, allocations: 170.6 kB / 360.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.473e-06/0.1069, allocations: 0 / 360.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001397/0.1083, allocations: 0.5129 MB / 360.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.1084, allocations: 140.5 kB / 360.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.1086, allocations: 240.9 kB / 361 MB, free: 9.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.1086, allocations: 29.7 kB / 361.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.1087, allocations: 176.4 kB / 361.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.029e-05/0.1088, allocations: 63.02 kB / 361.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.619e-05/0.1089, allocations: 45.7 kB / 361.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.109, allocations: 338.8 kB / 361.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.1092, allocations: 75.91 kB / 361.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.1094, allocations: 125.6 kB / 361.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00028/0.1097, allocations: 167.3 kB / 362 MB, free: 8.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1097, allocations: 4.031 kB / 362 MB, free: 8.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004797/0.1101, allocations: 298 kB / 362.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1102, allocations: 7.938 kB / 362.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1102, allocations: 0 / 362.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.1105, allocations: 88.81 kB / 362.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.1107, allocations: 31.97 kB / 362.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.1129, allocations: 2.15 MB / 364.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.1131, allocations: 27.83 kB / 364.6 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.1132, allocations: 8 kB / 364.6 MB, free: 5.992 MB / 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.0001511/0.1133, allocations: 151.1 kB / 364.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.196e-05/0.1134, allocations: 27.66 kB / 364.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.867e-05/0.1134, allocations: 26.19 kB / 364.8 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.768e-06/0.1134, allocations: 7.984 kB / 364.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.1134, allocations: 0 / 364.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1135, allocations: 0 / 364.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009283/0.1144, allocations: 0.7727 MB / 365.6 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.1144, allocations: 8.031 kB / 365.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.1145, allocations: 19.94 kB / 365.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002563/0.1148, allocations: 92.78 kB / 365.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.1148, allocations: 7.938 kB / 365.7 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.1169, allocations: 2.146 MB / 367.9 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1169, allocations: 4.031 kB / 367.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006388/0.1176, allocations: 448.7 kB / 368.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.1177, allocations: 120.8 kB / 368.4 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.1178, allocations: 8 kB / 368.4 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.118, allocations: 16.11 kB / 368.5 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.377e-05/0.1181, allocations: 39.89 kB / 368.5 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.1181, allocations: 4 kB / 368.5 MB, free: 1.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.1183, allocations: 180.5 kB / 368.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1183, allocations: 0 / 368.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.1188, allocations: 95.69 kB / 368.8 MB, free: 1.594 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.0001368/0.1189, allocations: 111.2 kB / 368.9 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006634/0.1196, allocations: 358.3 kB / 369.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1196, allocations: 0 / 369.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003898/0.12, allocations: 262.7 kB / 369.5 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.1204, allocations: 72.69 kB / 369.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.1215, allocations: 0.5929 MB / 370.2 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1373/0.2588, allocations: 0.7559 MB / 370.9 MB, free: 24.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.259, allocations: 18.77 kB / 370.9 MB, free: 24.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.145e-05/0.2591, allocations: 19.78 kB / 371 MB, free: 24.66 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2591, allocations: 0.625 kB / 371 MB, free: 24.66 MB / 302.1 MB Notification: Performance of Templates: time 0.2993/0.5584, allocations: 4.845 MB / 375.8 MB, free: 24.55 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches