Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009095/0.0009094, allocations: 100.8 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.7 MB / 246.4 MB, free: 9.711 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002279/0.0002279, allocations: 4 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.116, allocations: 51.52 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00315/0.1192, allocations: 2.576 MB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1203, allocations: 0.7248 MB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1204, allocations: 7.938 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.1206, allocations: 43.67 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.1207, allocations: 87.23 kB / 362.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.121, allocations: 79.91 kB / 362.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.1214, allocations: 374.2 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.1216, allocations: 85.62 kB / 362.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/0.1218, allocations: 127.6 kB / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.122, allocations: 147.3 kB / 362.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.1221, allocations: 16 kB / 362.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.829e-05/0.1221, allocations: 23.98 kB / 362.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.759e-05/0.1222, allocations: 55.75 kB / 362.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.663e-05/0.1223, allocations: 85.58 kB / 363 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002736/0.1226, allocations: 279.5 kB / 363.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1226, allocations: 0 / 363.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1226, allocations: 0 / 363.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1226, allocations: 0 / 363.3 MB, free: 8.703 MB / 302.1 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.0009622/0.1236, allocations: 0.5924 MB / 363.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1236, allocations: 8.031 kB / 363.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.1238, allocations: 55.52 kB / 364 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.1242, allocations: 274.4 kB / 364.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.1242, allocations: 20.56 kB / 364.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.1243, allocations: 24 kB / 364.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005459/0.1248, allocations: 272.7 kB / 364.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1248, allocations: 0 / 364.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.1249, allocations: 19.92 kB / 364.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1249, allocations: 8 kB / 364.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/0.1254, allocations: 226.1 kB / 364.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.127, allocations: 0.9875 MB / 365.8 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005453/0.1276, allocations: 304.2 kB / 366.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/0.1278, allocations: 128.8 kB / 366.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.1279, allocations: 4.188 kB / 366.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.1279, allocations: 34.69 kB / 366.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.1279, allocations: 0 / 366.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001243/0.1292, allocations: 0.5875 MB / 366.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.1292, allocations: 51.41 kB / 366.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.1295, allocations: 258.6 kB / 367.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.1295, allocations: 29.7 kB / 367.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1297, allocations: 183.9 kB / 367.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.576e-05/0.1297, allocations: 82.83 kB / 367.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/0.1297, allocations: 4 kB / 367.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1299, allocations: 334.8 kB / 367.7 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.1301, allocations: 84.36 kB / 367.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.1303, allocations: 111.5 kB / 367.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.1305, allocations: 93.72 kB / 368 MB, free: 3.676 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1305, allocations: 0 / 368 MB, free: 3.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006078/0.1311, allocations: 338.8 kB / 368.4 MB, free: 3.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.1312, allocations: 7.953 kB / 368.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.1312, allocations: 0 / 368.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002846/0.1315, allocations: 77.66 kB / 368.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.1317, allocations: 39.92 kB / 368.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002259/0.1339, allocations: 2.831 MB / 371.3 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.1341, allocations: 39.83 kB / 371.4 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.1341, allocations: 8 kB / 371.4 MB, free: 60 kB / 302.1 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.255/0.3892, allocations: 130.8 kB / 371.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3893, allocations: 29.81 kB / 371.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.533e-05/0.3894, allocations: 30.28 kB / 371.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.423e-06/0.3894, allocations: 2.375 kB / 371.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.3894, allocations: 1.625 kB / 371.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.3894, allocations: 1.828 kB / 371.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.391, allocations: 0.7065 MB / 372.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.391, allocations: 0 / 372.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.3912, allocations: 30.42 kB / 372.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002331/0.3914, allocations: 70.98 kB / 372.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.3914, allocations: 8.734 kB / 372.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.3934, allocations: 2.837 MB / 375.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3934, allocations: 0 / 375.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007116/0.3941, allocations: 394.8 kB / 375.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.3942, allocations: 102.8 kB / 375.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.3943, allocations: 4.406 kB / 375.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.3945, allocations: 39.16 kB / 375.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.3946, allocations: 20.59 kB / 375.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.3946, allocations: 8.375 kB / 375.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002594/0.3949, allocations: 188.2 kB / 375.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3949, allocations: 0 / 375.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005057/0.3954, allocations: 92.62 kB / 376 MB, free: 15.56 MB / 302.1 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.0001549/0.3956, allocations: 106.6 kB / 376.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000921/0.3965, allocations: 458.2 kB / 376.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3965, allocations: 0 / 376.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004508/0.397, allocations: 362.2 kB / 376.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.3975, allocations: 53.58 kB / 377 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.3985, allocations: 0.5988 MB / 377.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.3989, allocations: 0.7694 MB / 378.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.399, allocations: 25.33 kB / 378.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.876e-05/0.3991, allocations: 18.38 kB / 378.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3991, allocations: 0 / 378.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of Templates: time 0.009759/0.4088, allocations: 3.31 MB / 381.7 MB, free: 13.76 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches