Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 175.5 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009367/0.0009367, allocations: 85.05 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003513, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2587, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003186/0.2619, allocations: 3.363 MB / 378.5 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.2636, allocations: 0.98 MB / 379.4 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/0.2638, allocations: 6.719 kB / 379.4 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.2641, allocations: 57.78 kB / 379.5 MB, free: 41.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.2643, allocations: 143.9 kB / 379.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.2647, allocations: 127.6 kB / 379.8 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006099/0.2653, allocations: 0.6709 MB / 380.4 MB, free: 41.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.2656, allocations: 145.8 kB / 380.6 MB, free: 41.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003191/0.2659, allocations: 236.3 kB / 380.8 MB, free: 41.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003158/0.2663, allocations: 286.6 kB / 381.1 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.384e-05/0.2664, allocations: 31.25 kB / 381.1 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.413e-05/0.2664, allocations: 32 kB / 381.1 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.926e-05/0.2665, allocations: 100.7 kB / 381.2 MB, free: 40.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.2668, allocations: 278.4 kB / 381.5 MB, free: 40.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.2672, allocations: 0.6023 MB / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2672, allocations: 1.219 kB / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2672, allocations: 0 / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.2672, allocations: 0 / 382.1 MB, free: 40.09 MB / 298.7 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.002574/0.2698, allocations: 0.9471 MB / 383.1 MB, free: 39.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2699, allocations: 9 kB / 383.1 MB, free: 39.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.27, allocations: 60.78 kB / 383.1 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.2705, allocations: 393.1 kB / 383.5 MB, free: 38.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.2705, allocations: 32.84 kB / 383.5 MB, free: 38.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.909e-05/0.2706, allocations: 39.62 kB / 383.6 MB, free: 38.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.2722, allocations: 0.5865 MB / 384.2 MB, free: 38.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.2722, allocations: 4 kB / 384.2 MB, free: 38.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.297e-05/0.2723, allocations: 16.03 kB / 384.2 MB, free: 38.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.784e-05/0.2723, allocations: 17.23 kB / 384.2 MB, free: 38.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.2742, allocations: 0.6492 MB / 384.9 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.2779, allocations: 2.039 MB / 386.9 MB, free: 36.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003852/0.2818, allocations: 0.9447 MB / 387.8 MB, free: 35.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/0.2829, allocations: 409.4 kB / 388.2 MB, free: 35.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.283, allocations: 4 kB / 388.2 MB, free: 35.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009771/0.284, allocations: 443.3 kB / 388.7 MB, free: 34.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.595e-06/0.284, allocations: 0 / 388.7 MB, free: 34.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.008826/0.2928, allocations: 2.045 MB / 390.7 MB, free: 32.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.2929, allocations: 93.09 kB / 390.8 MB, free: 32.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/0.2934, allocations: 377.7 kB / 391.2 MB, free: 32.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.35e-05/0.2935, allocations: 29.7 kB / 391.2 MB, free: 32.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.2937, allocations: 232.5 kB / 391.4 MB, free: 32.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.2938, allocations: 126.2 kB / 391.6 MB, free: 31.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.2939, allocations: 4 kB / 391.6 MB, free: 31.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.294, allocations: 358.8 kB / 391.9 MB, free: 31.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007713/0.2947, allocations: 312.6 kB / 392.2 MB, free: 31.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007797/0.2955, allocations: 341.9 kB / 392.6 MB, free: 30.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.297, allocations: 0.6111 MB / 393.2 MB, free: 30.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.297, allocations: 7.938 kB / 393.2 MB, free: 30.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004447/0.3014, allocations: 1.193 MB / 394.4 MB, free: 29.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.728e-05/0.3015, allocations: 29.7 kB / 394.4 MB, free: 29.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3016, allocations: 4 kB / 394.4 MB, free: 29.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.3028, allocations: 424.5 kB / 394.8 MB, free: 28.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004964/0.3033, allocations: 91.88 kB / 394.9 MB, free: 28.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007654/0.311, allocations: 3.493 MB / 398.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007759/0.3118, allocations: 103.7 kB / 398.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.898e-05/0.3119, allocations: 12 kB / 398.5 MB, free: 24.76 MB / 298.7 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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002965/0.3122, allocations: 165.8 kB / 398.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.3123, allocations: 39.53 kB / 398.7 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.3124, allocations: 60.36 kB / 398.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.3125, allocations: 12.02 kB / 398.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3125, allocations: 0 / 398.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.3125, allocations: 0 / 398.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007102/0.3132, allocations: 0.5872 MB / 399.4 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.3132, allocations: 4 kB / 399.4 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004313/0.3137, allocations: 87.86 kB / 399.5 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.3147, allocations: 420.5 kB / 399.9 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-05/0.3148, allocations: 7.984 kB / 399.9 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007212/0.322, allocations: 3.487 MB / 403.4 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3221, allocations: 0 / 403.4 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004281/0.3264, allocations: 1.419 MB / 404.8 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000297/0.3267, allocations: 176.5 kB / 405 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.3268, allocations: 8 kB / 405 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006469/0.3275, allocations: 79.92 kB / 405 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.3277, allocations: 51.92 kB / 405.1 MB, free: 17.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.62e-05/0.3277, allocations: 8 kB / 405.1 MB, free: 17.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002743/0.328, allocations: 275.2 kB / 405.4 MB, free: 17.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.328, allocations: 0 / 405.4 MB, free: 17.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006726/0.3287, allocations: 167.8 kB / 405.5 MB, free: 17.51 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001618/0.3289, allocations: 116.1 kB / 405.6 MB, free: 17.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002367/0.3312, allocations: 0.9563 MB / 406.6 MB, free: 16.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3312, allocations: 0 / 406.6 MB, free: 16.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.3326, allocations: 0.5646 MB / 407.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005561/0.3332, allocations: 83.34 kB / 407.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.3361, allocations: 1.397 MB / 408.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.3364, allocations: 0.8353 MB / 409.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.3366, allocations: 31.42 kB / 409.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of SimCode: time 8.71e-07/0.3366, allocations: 0 / 409.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of Templates: time 0.01151/0.3481, allocations: 9.269 MB / 418.8 MB, free: 4.172 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches