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.002687/0.002687, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.856/3.856, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001373/0.001373, allocations: 93.36 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005626/0.0005632, allocations: 12 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5749/0.5756, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.7582, allocations: 77.49 MB / 453.2 MB, free: 3.152 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003466/0.7587, allocations: 75.95 kB / 453.3 MB, free: 3.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02305/0.7817, allocations: 4.949 MB / 458.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.696e-06/0.7818, allocations: 0 / 458.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.043e-05/0.7819, allocations: 8 kB / 458.2 MB, free: 14.1 MB / 346.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.001438/0.7833, allocations: 0.5925 MB / 458.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.338e-05/0.7834, allocations: 8.031 kB / 458.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.7835, allocations: 36.56 kB / 458.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005287/0.7841, allocations: 287.7 kB / 459.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.7841, allocations: 16.94 kB / 459.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.801e-05/0.7842, allocations: 32.31 kB / 459.2 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008724/0.7851, allocations: 257.4 kB / 459.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.7851, allocations: 4.188 kB / 459.5 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.074e-05/0.7852, allocations: 11.94 kB / 459.5 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.7853, allocations: 15.94 kB / 459.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008029/0.7861, allocations: 226.1 kB / 459.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00271/0.7888, allocations: 0.9961 MB / 460.7 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008484/0.7897, allocations: 218.6 kB / 460.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.7902, allocations: 132.8 kB / 461 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.7902, allocations: 0 / 461 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.7903, allocations: 38.56 kB / 461.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 5.31e-06/0.7903, allocations: 3.984 kB / 461.1 MB, free: 11.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.002146/0.7924, allocations: 0.5873 MB / 461.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.7925, allocations: 59.28 kB / 461.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/0.793, allocations: 258.6 kB / 462 MB, free: 10.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.793, allocations: 29.7 kB / 462 MB, free: 10.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00103/0.7941, allocations: 187.8 kB / 462.2 MB, free: 9.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.7942, allocations: 74.89 kB / 462.3 MB, free: 9.805 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.7942, allocations: 4 kB / 462.3 MB, free: 9.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.7945, allocations: 334.8 kB / 462.6 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.7948, allocations: 84.42 kB / 462.7 MB, free: 9.379 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000381/0.7952, allocations: 119.4 kB / 462.8 MB, free: 9.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006925/0.796, allocations: 204.8 kB / 463 MB, free: 9.047 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.796, allocations: 0 / 463 MB, free: 9.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002867/0.7989, allocations: 330.8 kB / 463.3 MB, free: 8.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.7989, allocations: 15.94 kB / 463.3 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.7989, allocations: 0 / 463.3 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004744/0.7994, allocations: 69.67 kB / 463.4 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.7998, allocations: 47.91 kB / 463.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003893/0.8037, allocations: 2.823 MB / 466.3 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004219/0.8042, allocations: 36.17 kB / 466.3 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-05/0.8042, allocations: 8 kB / 466.3 MB, free: 5.438 MB / 346.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.0004024/0.8047, allocations: 141.8 kB / 466.5 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.8048, allocations: 23.72 kB / 466.5 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.629e-05/0.8049, allocations: 34.17 kB / 466.5 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.805, allocations: 0 / 466.5 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/0.805, allocations: 4 kB / 466.5 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.805, allocations: 3.938 kB / 466.5 MB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.8071, allocations: 0.6988 MB / 467.2 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.8071, allocations: 0 / 467.2 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.8073, allocations: 27.92 kB / 467.3 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004004/0.8078, allocations: 73.67 kB / 467.3 MB, free: 4.363 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.8078, allocations: 11.94 kB / 467.3 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004636/0.8125, allocations: 2.823 MB / 470.2 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/0.8126, allocations: 128 / 470.2 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.8143, allocations: 405.5 kB / 470.6 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002277/0.8145, allocations: 100.8 kB / 470.7 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.538e-05/0.8147, allocations: 4 kB / 470.7 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.8152, allocations: 44.69 kB / 470.7 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.8154, allocations: 19.97 kB / 470.7 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.8154, allocations: 4 kB / 470.7 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003987/0.8158, allocations: 185.9 kB / 470.9 MB, free: 492 kB / 346.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.8159, allocations: 0 / 470.9 MB, free: 492 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008463/0.8167, allocations: 95.84 kB / 471 MB, free: 396 kB / 346.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.0002356/0.817, allocations: 110.9 kB / 471.1 MB, free: 280 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.8197, allocations: 457.6 kB / 471.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.8198, allocations: 0 / 471.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007765/0.8206, allocations: 369.4 kB / 471.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008735/0.8215, allocations: 52.41 kB / 472 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.8234, allocations: 0.6163 MB / 472.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006601/0.8241, allocations: 0.7755 MB / 473.4 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.8242, allocations: 19.44 kB / 473.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/0.8243, allocations: 4 kB / 473.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of Templates: time 0.01737/0.8416, allocations: 5.555 MB / 478.9 MB, free: 8.328 MB / 362.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