Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009807/0.0009804, allocations: 174.6 kB / 16.72 MB, free: 5.082 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.565/1.565, 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.0007716/0.0007714, allocations: 81.05 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003948, allocations: 16 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2825, allocations: 47.56 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00233/0.2849, allocations: 2.083 MB / 377.2 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.286, allocations: 0.6417 MB / 377.8 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.2861, allocations: 7 kB / 377.8 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.2862, allocations: 30.73 kB / 377.8 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.2864, allocations: 59.81 kB / 377.9 MB, free: 43.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.2866, allocations: 53.94 kB / 378 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003165/0.2869, allocations: 252.6 kB / 378.2 MB, free: 43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.2872, allocations: 73.94 kB / 378.3 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.2874, allocations: 89.98 kB / 378.4 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.2875, allocations: 102.2 kB / 378.5 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.2876, allocations: 11.19 kB / 378.5 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.2877, allocations: 22.16 kB / 378.5 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.038e-05/0.2877, allocations: 42.36 kB / 378.5 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2879, allocations: 132.1 kB / 378.7 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.2881, allocations: 195.7 kB / 378.9 MB, free: 42.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2881, allocations: 0 / 378.9 MB, free: 42.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2881, allocations: 0 / 378.9 MB, free: 42.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2881, allocations: 0 / 378.9 MB, free: 42.56 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006695/0.2888, allocations: 0.4916 MB / 379.3 MB, free: 42.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.2889, allocations: 9.844 kB / 379.4 MB, free: 42.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.491e-05/0.2889, allocations: 25.31 kB / 379.4 MB, free: 42.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.2892, allocations: 235.5 kB / 379.6 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.2892, allocations: 13.22 kB / 379.6 MB, free: 41.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.2892, allocations: 25.72 kB / 379.6 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.2896, allocations: 189 kB / 379.8 MB, free: 41.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.2896, allocations: 4 kB / 379.8 MB, free: 41.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.2896, allocations: 10.34 kB / 379.8 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.2896, allocations: 13.11 kB / 379.9 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.29, allocations: 156 kB / 380 MB, free: 41.61 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.2911, allocations: 0.9298 MB / 380.9 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.2915, allocations: 159.4 kB / 381.1 MB, free: 40.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.2917, allocations: 93.83 kB / 381.2 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.2917, allocations: 13.22 kB / 381.2 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.2917, allocations: 40.88 kB / 381.2 MB, free: 40.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.432e-06/0.2917, allocations: 0 / 381.2 MB, free: 40.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001185/0.2929, allocations: 423.9 kB / 381.7 MB, free: 40.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.244e-05/0.293, allocations: 58.09 kB / 381.7 MB, free: 40.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.2931, allocations: 171.8 kB / 381.9 MB, free: 40.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.2931, allocations: 30.89 kB / 381.9 MB, free: 40.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.2932, allocations: 142.8 kB / 382 MB, free: 39.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.781e-05/0.2932, allocations: 62.2 kB / 382.1 MB, free: 39.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.2933, allocations: 0 / 382.1 MB, free: 39.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.952e-05/0.2933, allocations: 330.9 kB / 382.4 MB, free: 39.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.2934, allocations: 55.03 kB / 382.5 MB, free: 39.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.2936, allocations: 75.12 kB / 382.6 MB, free: 39.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.2938, allocations: 129 kB / 382.7 MB, free: 39.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2938, allocations: 0 / 382.7 MB, free: 39.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004169/0.2942, allocations: 228.3 kB / 382.9 MB, free: 39.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2943, allocations: 9.281 kB / 382.9 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2943, allocations: 3.984 kB / 382.9 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.2956, allocations: 228.9 kB / 383.1 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.2958, allocations: 29.33 kB / 383.2 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000373/0.2961, allocations: 0.6061 MB / 383.8 MB, free: 38.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.2963, allocations: 25.84 kB / 383.8 MB, free: 38.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.2963, allocations: 4.969 kB / 383.8 MB, free: 38.56 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.2964, allocations: 130.9 kB / 383.9 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.357e-05/0.2965, allocations: 16 kB / 384 MB, free: 38.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000463/0.297, allocations: 239.8 kB / 384.2 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.297, allocations: 6.328 kB / 384.2 MB, free: 38.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.297, allocations: 3.938 kB / 384.2 MB, free: 38.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.297, allocations: 1 kB / 384.2 MB, free: 38.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00085/0.2979, allocations: 0.6007 MB / 384.8 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2979, allocations: 4.031 kB / 384.8 MB, free: 37.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.298, allocations: 31.41 kB / 384.8 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.2991, allocations: 214.1 kB / 385 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.2991, allocations: 1.031 kB / 385 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003562/0.2995, allocations: 0.6187 MB / 385.7 MB, free: 37.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2995, allocations: 1.094 kB / 385.7 MB, free: 37.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007961/0.3003, allocations: 436.1 kB / 386.1 MB, free: 36.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.933e-05/0.3004, allocations: 98.36 kB / 386.2 MB, free: 36.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.3004, allocations: 5.25 kB / 386.2 MB, free: 36.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.3006, allocations: 15.95 kB / 386.2 MB, free: 36.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.227e-05/0.3006, allocations: 13.52 kB / 386.2 MB, free: 36.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3007, allocations: 8.094 kB / 386.2 MB, free: 36.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.441e-05/0.3008, allocations: 124.9 kB / 386.3 MB, free: 36.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3008, allocations: 0 / 386.3 MB, free: 36.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003396/0.3011, allocations: 60.19 kB / 386.4 MB, free: 36.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001846/0.3013, allocations: 110.7 kB / 386.5 MB, free: 36.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004586/0.3018, allocations: 152.1 kB / 386.7 MB, free: 36.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3018, allocations: 1.375 kB / 386.7 MB, free: 36.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001885/0.302, allocations: 85.86 kB / 386.7 MB, free: 36.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.3024, allocations: 23.66 kB / 386.8 MB, free: 36.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.3034, allocations: 0.7079 MB / 387.5 MB, free: 35.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.3036, allocations: 0.7404 MB / 388.2 MB, free: 35.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.82e-05/0.3037, allocations: 11.44 kB / 388.2 MB, free: 35.01 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3037, allocations: 4 kB / 388.2 MB, free: 35 MB / 298.7 MB Notification: Performance of Templates: time 0.004229/0.3079, allocations: 3.026 MB / 391.3 MB, free: 31.98 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches