Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 99.11 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 47.92 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2628, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003527/0.2664, allocations: 2.565 MB / 402 MB, free: 30.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.2676, allocations: 0.6381 MB / 402.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.2678, allocations: 4 kB / 402.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.2679, allocations: 27.77 kB / 402.7 MB, free: 30.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.2681, allocations: 63.48 kB / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.2683, allocations: 71.92 kB / 402.8 MB, free: 30 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002169/0.2686, allocations: 274.7 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2687, allocations: 80.77 kB / 403.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.2689, allocations: 91.64 kB / 403.3 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.269, allocations: 111.5 kB / 403.4 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.269, allocations: 16 kB / 403.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.232e-05/0.2691, allocations: 31.98 kB / 403.4 MB, free: 29.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.346e-05/0.2692, allocations: 39.84 kB / 403.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.718e-05/0.2693, allocations: 119.4 kB / 403.6 MB, free: 29.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002346/0.2695, allocations: 264.6 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2695, allocations: 0 / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2695, allocations: 8 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2695, allocations: 0 / 403.8 MB, free: 28.98 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.0007599/0.2703, allocations: 0.5262 MB / 404.4 MB, free: 28.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2704, allocations: 8.031 kB / 404.4 MB, free: 28.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.546e-05/0.2704, allocations: 24.66 kB / 404.4 MB, free: 28.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.2707, allocations: 247.9 kB / 404.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.2707, allocations: 20.75 kB / 404.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.2707, allocations: 24.38 kB / 404.7 MB, free: 28.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.2711, allocations: 187.6 kB / 404.9 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.2711, allocations: 0 / 404.9 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.2711, allocations: 12 kB / 404.9 MB, free: 27.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.2711, allocations: 4 kB / 404.9 MB, free: 27.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002636/0.2714, allocations: 149.6 kB / 405 MB, free: 27.7 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.001079/0.2725, allocations: 0.9336 MB / 406 MB, free: 26.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.2728, allocations: 158.5 kB / 406.1 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.273, allocations: 100.8 kB / 406.2 MB, free: 26.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.273, allocations: 0 / 406.2 MB, free: 26.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.273, allocations: 42.5 kB / 406.3 MB, free: 26.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.273, allocations: 0 / 406.3 MB, free: 26.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001147/0.2742, allocations: 419.3 kB / 406.7 MB, free: 25.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.2742, allocations: 55.41 kB / 406.7 MB, free: 25.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.2744, allocations: 175.2 kB / 406.9 MB, free: 25.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.2744, allocations: 33.7 kB / 406.9 MB, free: 25.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.2745, allocations: 140.2 kB / 407.1 MB, free: 25.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/0.2745, allocations: 63.09 kB / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.762e-05/0.2746, allocations: 37.7 kB / 407.2 MB, free: 25.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.036e-05/0.2746, allocations: 330.8 kB / 407.5 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.825e-05/0.2748, allocations: 51.97 kB / 407.5 MB, free: 24.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.2749, allocations: 69.69 kB / 407.6 MB, free: 24.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.2751, allocations: 133.6 kB / 407.7 MB, free: 24.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2751, allocations: 4 kB / 407.7 MB, free: 24.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003488/0.2754, allocations: 220.8 kB / 408 MB, free: 24.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2755, allocations: 8.031 kB / 408 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2755, allocations: 0 / 408 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.2767, allocations: 216.5 kB / 408.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.2768, allocations: 31.97 kB / 408.2 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003536/0.2772, allocations: 0.6147 MB / 408.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.2773, allocations: 15.88 kB / 408.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.2774, allocations: 7.938 kB / 408.8 MB, free: 23.63 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 (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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 9.496e-05/0.2775, allocations: 137.7 kB / 409 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.033e-05/0.2775, allocations: 19.81 kB / 409 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004072/0.2779, allocations: 224.3 kB / 409.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2779, allocations: 4 kB / 409.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.278, allocations: 0 / 409.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.278, allocations: 3.984 kB / 409.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007279/0.2787, allocations: 0.5883 MB / 409.8 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2787, allocations: 4.031 kB / 409.8 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.2789, allocations: 35.86 kB / 409.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009625/0.2798, allocations: 204.6 kB / 410.1 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.2799, allocations: 7.984 kB / 410.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003009/0.2802, allocations: 0.6187 MB / 410.7 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.2802, allocations: 8.094 kB / 410.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/0.292, allocations: 5.543 MB / 416.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-05/0.2921, allocations: 92.86 kB / 416.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.2921, allocations: 4 kB / 416.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.2922, allocations: 16.11 kB / 416.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.445e-05/0.2923, allocations: 15.92 kB / 416.4 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.2923, allocations: 4 kB / 416.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.892e-05/0.2924, allocations: 127.2 kB / 416.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2924, allocations: 0 / 416.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004502/0.2929, allocations: 92.22 kB / 416.6 MB, free: 15.47 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 (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 {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001702/0.2931, allocations: 113.5 kB / 416.7 MB, free: 15.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.2935, allocations: 163.6 kB / 416.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2935, allocations: 0 / 416.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.2936, allocations: 87.83 kB / 416.9 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.2941, allocations: 27.98 kB / 417 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.2952, allocations: 0.959 MB / 417.9 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.2954, allocations: 0.7446 MB / 418.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.053e-05/0.2955, allocations: 17.48 kB / 418.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/0.2955, allocations: 11.44 kB / 418.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2955, allocations: 4 kB / 418.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of Templates: time 0.00673/0.3022, allocations: 4.028 MB / 422.7 MB, free: 9.262 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches