Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 117.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 211.7 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.487/1.487, allocations: 230.4 MB / 250 MB, free: 9.055 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 67.84 kB / 367.4 MB, free: 7.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.289, allocations: 53.31 MB / 420.7 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006587/0.2956, allocations: 2.948 MB / 423.6 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.298, allocations: 0.8024 MB / 424.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002672/0.2983, allocations: 4 kB / 424.4 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002572/0.2985, allocations: 51.5 kB / 424.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003504/0.2989, allocations: 111 kB / 424.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.2994, allocations: 111.8 kB / 424.7 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007353/0.3001, allocations: 406.3 kB / 425.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.3004, allocations: 99.19 kB / 425.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000393/0.3008, allocations: 155.4 kB / 425.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003251/0.3011, allocations: 163.3 kB / 425.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.058e-05/0.3012, allocations: 36 kB / 425.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.3013, allocations: 44 kB / 425.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.3014, allocations: 79.73 kB / 425.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002488/0.3017, allocations: 183.1 kB / 425.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000753/0.3024, allocations: 434.4 kB / 426.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3025, allocations: 0 / 426.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3025, allocations: 0 / 426.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.3025, allocations: 0 / 426.2 MB, free: 2.902 MB / 334.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.001645/0.3041, allocations: 0.6349 MB / 426.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.3042, allocations: 8.031 kB / 426.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002732/0.3044, allocations: 44.7 kB / 426.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006671/0.3051, allocations: 292.8 kB / 427.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.911e-05/0.3051, allocations: 16.94 kB / 427.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.917e-05/0.3052, allocations: 28.31 kB / 427.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008061/0.306, allocations: 296.9 kB / 427.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.306, allocations: 0 / 427.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.3061, allocations: 12 kB / 427.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.3061, allocations: 8 kB / 427.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006378/0.3067, allocations: 198.1 kB / 427.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002723/0.3095, allocations: 1.152 MB / 428.9 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007817/0.3102, allocations: 198.6 kB / 429.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004436/0.3107, allocations: 124.8 kB / 429.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.3107, allocations: 4 kB / 429.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004558/0.3112, allocations: 172 kB / 429.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.845e-06/0.3112, allocations: 0 / 429.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002257/0.3134, allocations: 0.5133 MB / 429.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/0.3136, allocations: 136.5 kB / 430.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.314, allocations: 245 kB / 430.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.314, allocations: 33.7 kB / 430.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.3142, allocations: 168.6 kB / 430.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3143, allocations: 83.44 kB / 430.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.3144, allocations: 49.66 kB / 430.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.3146, allocations: 330.8 kB / 430.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.3149, allocations: 71.97 kB / 431 MB, free: 13.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.3152, allocations: 125.1 kB / 431.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004521/0.3156, allocations: 179.3 kB / 431.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3156, allocations: 0 / 431.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000821/0.3164, allocations: 286.1 kB / 431.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3165, allocations: 4 kB / 431.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3165, allocations: 4.094 kB / 431.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005101/0.317, allocations: 96.73 kB / 431.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.3172, allocations: 27.92 kB / 431.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003799/0.321, allocations: 2.139 MB / 433.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.3214, allocations: 35.89 kB / 433.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.3214, allocations: 8 kB / 433.9 MB, free: 10.75 MB / 350.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.0003124/0.3217, allocations: 149.8 kB / 434 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.927e-05/0.3218, allocations: 27.91 kB / 434.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.294e-05/0.3219, allocations: 34.11 kB / 434.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3219, allocations: 4 kB / 434.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3219, allocations: 0 / 434.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3219, allocations: 4 kB / 434.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.3234, allocations: 0.7689 MB / 434.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3234, allocations: 0 / 434.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.3236, allocations: 19.98 kB / 434.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003951/0.324, allocations: 84.8 kB / 435 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.324, allocations: 16.03 kB / 435 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00362/0.3276, allocations: 2.143 MB / 437.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3277, allocations: 0 / 437.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.3287, allocations: 460.5 kB / 437.6 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.329, allocations: 128.9 kB / 437.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.598e-05/0.3291, allocations: 7.938 kB / 437.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.3294, allocations: 15.98 kB / 437.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.3296, allocations: 35.95 kB / 437.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.3296, allocations: 4 kB / 437.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002984/0.3299, allocations: 180.5 kB / 438 MB, free: 6.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3299, allocations: 0 / 438 MB, free: 6.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008119/0.3307, allocations: 91.89 kB / 438.1 MB, free: 6.359 MB / 350.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.0002273/0.3309, allocations: 103.2 kB / 438.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.332, allocations: 354.4 kB / 438.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.332, allocations: 4.062 kB / 438.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006418/0.3327, allocations: 250.5 kB / 438.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.3332, allocations: 64.47 kB / 438.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.3347, allocations: 0.6071 MB / 439.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005211/0.3353, allocations: 0.7717 MB / 440.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.3354, allocations: 22.28 kB / 440.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.294e-05/0.3354, allocations: 19.44 kB / 440.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3354, allocations: 0 / 440.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of Templates: time 0.0119/0.3473, allocations: 4.948 MB / 445.2 MB, free: 15.21 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches