Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001746/0.001746, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002073/0.002073, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.537/1.537, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 69.69 kB / 307.9 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1094, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00494/0.1144, allocations: 3.016 MB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.1161, allocations: 0.7518 MB / 362.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.1163, allocations: 11.94 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.1165, allocations: 55.44 kB / 362.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002094/0.1167, allocations: 99.09 kB / 362.4 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.1171, allocations: 107.8 kB / 362.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004573/0.1176, allocations: 406.2 kB / 362.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.1178, allocations: 111.1 kB / 363 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.1181, allocations: 155.4 kB / 363.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.1183, allocations: 167.3 kB / 363.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.1183, allocations: 32 kB / 363.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.759e-05/0.1185, allocations: 43.98 kB / 363.4 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.734e-05/0.1185, allocations: 67.77 kB / 363.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.1187, allocations: 179.1 kB / 363.6 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.1192, allocations: 390.9 kB / 364 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1192, allocations: 3.938 kB / 364 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1192, allocations: 0 / 364 MB, free: 8.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1192, allocations: 4 kB / 364 MB, free: 8.336 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.001131/0.1203, allocations: 0.63 MB / 364.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1204, allocations: 12.03 kB / 364.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.1206, allocations: 44.55 kB / 364.7 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.121, allocations: 283.5 kB / 365 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.1211, allocations: 24.94 kB / 365 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.819e-05/0.1211, allocations: 32.31 kB / 365 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005668/0.1217, allocations: 257.2 kB / 365.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1217, allocations: 0 / 365.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.1217, allocations: 15.98 kB / 365.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1218, allocations: 4 kB / 365.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005255/0.1223, allocations: 218.1 kB / 365.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.1241, allocations: 0.9677 MB / 366.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005884/0.1247, allocations: 307.6 kB / 366.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.125, allocations: 112.8 kB / 366.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.125, allocations: 4 kB / 366.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.343e-05/0.1251, allocations: 34.56 kB / 366.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1251, allocations: 0 / 366.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001439/0.1265, allocations: 0.566 MB / 367.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.1266, allocations: 55.41 kB / 367.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.1269, allocations: 266.5 kB / 367.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.127, allocations: 29.7 kB / 367.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.1271, allocations: 179.9 kB / 368 MB, free: 4.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.326e-05/0.1272, allocations: 71 kB / 368.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.558e-05/0.1273, allocations: 37.95 kB / 368.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.1275, allocations: 334.8 kB / 368.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.1277, allocations: 84.42 kB / 368.5 MB, free: 3.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.128, allocations: 105.1 kB / 368.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.1284, allocations: 182.5 kB / 368.8 MB, free: 3.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1284, allocations: 8 kB / 368.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007104/0.1291, allocations: 318.6 kB / 369.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1292, allocations: 8 kB / 369.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1292, allocations: 0 / 369.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003091/0.1295, allocations: 77.73 kB / 369.2 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.1297, allocations: 39.91 kB / 369.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1547/0.2844, allocations: 3.039 MB / 372.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.2847, allocations: 30.14 kB / 372.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.2848, allocations: 11.09 kB / 372.3 MB, free: 18.93 MB / 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.2849, allocations: 146.5 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.348e-05/0.285, allocations: 25.42 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.285, allocations: 35.64 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.285, allocations: 6.203 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.2851, allocations: 3.359 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2851, allocations: 1.797 kB / 372.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.2861, allocations: 0.682 MB / 373.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.2861, allocations: 3.125 kB / 373.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.2863, allocations: 24.91 kB / 373.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002258/0.2865, allocations: 82.38 kB / 373.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.2865, allocations: 3.969 kB / 373.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.2883, allocations: 3.045 MB / 376.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2883, allocations: 4.562 kB / 376.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000618/0.2889, allocations: 377.2 kB / 376.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.289, allocations: 104 kB / 376.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.289, allocations: 4.953 kB / 376.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.2893, allocations: 30.97 kB / 376.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.2894, allocations: 26.42 kB / 376.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.2894, allocations: 5.281 kB / 376.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.2896, allocations: 189.2 kB / 377.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2896, allocations: 3.75 kB / 377.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004076/0.29, allocations: 90.66 kB / 377.2 MB, free: 15.43 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001104/0.2902, allocations: 107 kB / 377.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007987/0.291, allocations: 442.5 kB / 377.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.291, allocations: 0 / 377.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004087/0.2914, allocations: 352.7 kB / 378.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.2918, allocations: 53.22 kB / 378.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008413/0.2927, allocations: 0.5362 MB / 378.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.2929, allocations: 0.765 MB / 379.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.828e-05/0.293, allocations: 20.52 kB / 379.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.293, allocations: 320 / 379.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of Templates: time 0.00824/0.3012, allocations: 5.645 MB / 385.1 MB, free: 12.91 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches