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.001167/0.001167, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001272, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 246.9 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 59.03 kB / 306.9 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.0898, allocations: 50.53 MB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004245/0.09408, allocations: 2.98 MB / 360.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.09563, allocations: 0.7907 MB / 361.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.09589, allocations: 7.938 kB / 361.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.09615, allocations: 35.75 kB / 361.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.09641, allocations: 95.19 kB / 361.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.09675, allocations: 99.91 kB / 361.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.09719, allocations: 382.3 kB / 361.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.09743, allocations: 123.9 kB / 361.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.09769, allocations: 139.4 kB / 362.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.09791, allocations: 147.3 kB / 362.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.09796, allocations: 20 kB / 362.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.942e-05/0.09806, allocations: 24 kB / 362.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.09812, allocations: 59.7 kB / 362.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.0983, allocations: 155.2 kB / 362.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002963/0.09861, allocations: 339.4 kB / 362.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.09862, allocations: 0 / 362.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.09863, allocations: 4 kB / 362.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.09865, allocations: 0 / 362.8 MB, free: 9.086 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.001064/0.09972, allocations: 0.6207 MB / 363.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.09976, allocations: 8.031 kB / 363.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.09996, allocations: 40.56 kB / 363.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.1003, allocations: 288.7 kB / 363.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.1003, allocations: 24.92 kB / 363.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.335e-05/0.1004, allocations: 24.38 kB / 363.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.1009, allocations: 288.9 kB / 364.1 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1009, allocations: 0 / 364.1 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.101, allocations: 12 kB / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.101, allocations: 4 kB / 364.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.1014, allocations: 210.1 kB / 364.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.1031, allocations: 1.152 MB / 365.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004923/0.1036, allocations: 226.5 kB / 365.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.1039, allocations: 140.8 kB / 365.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.1039, allocations: 0 / 365.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003096/0.1043, allocations: 174.3 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.463e-06/0.1043, allocations: 0 / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001378/0.1057, allocations: 0.5107 MB / 366.5 MB, free: 5.145 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.1057, allocations: 136.5 kB / 366.6 MB, free: 4.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.106, allocations: 241 kB / 366.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.106, allocations: 37.69 kB / 366.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.1062, allocations: 164.4 kB / 367.1 MB, free: 4.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.146e-05/0.1062, allocations: 75.08 kB / 367.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.423e-05/0.1063, allocations: 49.61 kB / 367.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1065, allocations: 338.8 kB / 367.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1066, allocations: 75.91 kB / 367.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.1068, allocations: 125.1 kB / 367.7 MB, free: 3.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.1071, allocations: 181.1 kB / 367.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1071, allocations: 0 / 367.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005064/0.1076, allocations: 286 kB / 368.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1077, allocations: 8 kB / 368.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1077, allocations: 0 / 368.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003341/0.108, allocations: 96.83 kB / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.1082, allocations: 31.92 kB / 368.3 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.1103, allocations: 1.936 MB / 370.2 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.1105, allocations: 31.81 kB / 370.3 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.1105, allocations: 8 kB / 370.3 MB, free: 1.121 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.0001438/0.1107, allocations: 150.5 kB / 370.4 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.109e-05/0.1107, allocations: 27.72 kB / 370.4 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.368e-05/0.1108, allocations: 30.17 kB / 370.5 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1108, allocations: 7.938 kB / 370.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.1108, allocations: 0 / 370.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1108, allocations: 0 / 370.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009072/0.1117, allocations: 0.7757 MB / 371.3 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.1117, allocations: 7.938 kB / 371.3 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.1119, allocations: 19.92 kB / 371.3 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1453/0.2571, allocations: 82.73 kB / 371.4 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.2572, allocations: 4.672 kB / 371.4 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/0.2591, allocations: 1.926 MB / 373.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2591, allocations: 4.781 kB / 373.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006557/0.2598, allocations: 457.4 kB / 373.8 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.743e-05/0.2599, allocations: 125.5 kB / 373.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.26, allocations: 6.594 kB / 373.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.2602, allocations: 18.8 kB / 373.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.2603, allocations: 38.39 kB / 373.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.2603, allocations: 6.359 kB / 373.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001588/0.2605, allocations: 179.2 kB / 374.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2605, allocations: 0 / 374.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004522/0.2609, allocations: 94.88 kB / 374.2 MB, free: 18.54 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.0001119/0.261, allocations: 109.7 kB / 374.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006147/0.2617, allocations: 353.3 kB / 374.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2617, allocations: 0 / 374.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.262, allocations: 263 kB / 374.9 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/0.2625, allocations: 53.34 kB / 375 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.2636, allocations: 0.7399 MB / 375.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.2638, allocations: 0.7656 MB / 376.5 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.2639, allocations: 19.67 kB / 376.5 MB, free: 17.01 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2639, allocations: 2.719 kB / 376.5 MB, free: 17.01 MB / 302.1 MB Notification: Performance of Templates: time 0.007101/0.271, allocations: 4.675 MB / 381.2 MB, free: 16.64 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/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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches