Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00683/0.006836, allocations: 183.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.382/3.382, allocations: 205.4 MB / 222.5 MB, free: 9.102 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.001761/0.001761, allocations: 86.94 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006352/0.0006353, allocations: 11.98 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7205/0.7212, allocations: 47.57 MB / 374.5 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005919/0.7272, allocations: 2.365 MB / 376.9 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.7301, allocations: 0.7174 MB / 377.6 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005116/0.7307, allocations: 8.781 kB / 377.6 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002075/0.731, allocations: 32.03 kB / 377.6 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008715/0.7319, allocations: 139.8 kB / 377.8 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005593/0.7325, allocations: 59.27 kB / 377.8 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.7336, allocations: 279.7 kB / 378.1 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004115/0.7341, allocations: 85.12 kB / 378.2 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005528/0.7347, allocations: 133.2 kB / 378.3 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000357/0.7351, allocations: 137.3 kB / 378.5 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.237e-05/0.7352, allocations: 17.41 kB / 378.5 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.7353, allocations: 17 kB / 378.5 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.7354, allocations: 51.44 kB / 378.5 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.7356, allocations: 91.08 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005607/0.7362, allocations: 278.5 kB / 378.9 MB, free: 42.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.7362, allocations: 0.9375 kB / 378.9 MB, free: 42.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.7362, allocations: 0 / 378.9 MB, free: 42.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.7363, allocations: 0 / 378.9 MB, free: 42.08 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001952/0.7382, allocations: 0.5933 MB / 379.5 MB, free: 41.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.485e-05/0.7383, allocations: 8.875 kB / 379.5 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001941/0.7385, allocations: 35.25 kB / 379.5 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.7392, allocations: 269.4 kB / 379.8 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.173e-05/0.7392, allocations: 27.52 kB / 379.8 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.62e-05/0.7394, allocations: 24.22 kB / 379.9 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.7407, allocations: 263.3 kB / 380.1 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.7408, allocations: 0 / 380.1 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.329e-05/0.7408, allocations: 10.56 kB / 380.1 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.7409, allocations: 6.656 kB / 380.1 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.7422, allocations: 238.3 kB / 380.4 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004105/0.7464, allocations: 0.9862 MB / 381.3 MB, free: 40.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.748, allocations: 306.8 kB / 381.6 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.7481, allocations: 2.438 kB / 381.6 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.561e-05/0.7482, allocations: 35.91 kB / 381.7 MB, free: 39.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 5.129e-06/0.7482, allocations: 1.5 kB / 381.7 MB, free: 39.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.003485/0.7517, allocations: 0.5885 MB / 382.3 MB, free: 39.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.7518, allocations: 54.03 kB / 382.3 MB, free: 39.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006369/0.7525, allocations: 261 kB / 382.6 MB, free: 39.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.094e-05/0.7526, allocations: 30.8 kB / 382.6 MB, free: 39.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.7528, allocations: 241.6 kB / 382.8 MB, free: 39.01 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.7529, allocations: 68.09 kB / 382.9 MB, free: 38.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.7529, allocations: 5.219 kB / 382.9 MB, free: 38.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.385e-05/0.7531, allocations: 321.1 kB / 383.2 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000582/0.7537, allocations: 86.58 kB / 383.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/0.7542, allocations: 115.3 kB / 383.4 MB, free: 38.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005736/0.7548, allocations: 100.5 kB / 383.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.7549, allocations: 7.891 kB / 383.5 MB, free: 38.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001918/0.7568, allocations: 317.7 kB / 383.8 MB, free: 38.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.7569, allocations: 5.656 kB / 383.8 MB, free: 38.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.757, allocations: 0.6875 kB / 383.9 MB, free: 38.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007/0.7577, allocations: 78.08 kB / 383.9 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008822/0.7586, allocations: 38.97 kB / 384 MB, free: 38.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004505/0.7631, allocations: 2.848 MB / 386.8 MB, free: 35.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000619/0.7638, allocations: 29.3 kB / 386.8 MB, free: 35.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.066e-05/0.7639, allocations: 9.781 kB / 386.9 MB, free: 35.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003275/0.7643, allocations: 150 kB / 387 MB, free: 35.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/0.7646, allocations: 29.72 kB / 387 MB, free: 35.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.7647, allocations: 31.95 kB / 387.1 MB, free: 35.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.7647, allocations: 1.906 kB / 387.1 MB, free: 35.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.508e-05/0.7648, allocations: 6.094 kB / 387.1 MB, free: 35.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.7648, allocations: 7.922 kB / 387.1 MB, free: 35.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002887/0.7677, allocations: 0.6977 MB / 387.8 MB, free: 34.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.699e-06/0.7678, allocations: 0 / 387.8 MB, free: 34.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/0.7682, allocations: 33.94 kB / 387.8 MB, free: 34.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005331/0.7688, allocations: 68.42 kB / 387.9 MB, free: 34.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.7689, allocations: 5.562 kB / 387.9 MB, free: 34.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00428/0.7732, allocations: 2.854 MB / 390.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.7732, allocations: 1.5 kB / 390.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/0.775, allocations: 396.9 kB / 391.1 MB, free: 31.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.7752, allocations: 104.8 kB / 391.2 MB, free: 31.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.7754, allocations: 7.984 kB / 391.2 MB, free: 31.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007439/0.7761, allocations: 31.98 kB / 391.3 MB, free: 31.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.7763, allocations: 23.97 kB / 391.3 MB, free: 31.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.7764, allocations: 8 kB / 391.3 MB, free: 31.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004085/0.7768, allocations: 186 kB / 391.5 MB, free: 30.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.7768, allocations: 0 / 391.5 MB, free: 30.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001235/0.7781, allocations: 99.7 kB / 391.6 MB, free: 30.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002466/0.7784, allocations: 107.2 kB / 391.7 MB, free: 30.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.7802, allocations: 453.2 kB / 392.1 MB, free: 30.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.896e-06/0.7803, allocations: 0 / 392.1 MB, free: 30.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.7813, allocations: 369.3 kB / 392.5 MB, free: 29.85 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009069/0.7823, allocations: 47.88 kB / 392.5 MB, free: 29.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.7843, allocations: 0.6234 MB / 393.1 MB, free: 29.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.7847, allocations: 0.7755 MB / 393.9 MB, free: 28.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.7849, allocations: 19.44 kB / 393.9 MB, free: 28.32 MB / 298.7 MB Notification: Performance of SimCode: time 1.573e-06/0.7849, allocations: 0 / 393.9 MB, free: 28.32 MB / 298.7 MB Notification: Performance of Templates: time 0.01698/0.8019, allocations: 5.401 MB / 399.3 MB, free: 22.93 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches