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.00106/0.00106, allocations: 113.1 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001104, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 60.12 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2622, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004649/0.2669, allocations: 3.021 MB / 413 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.2689, allocations: 0.7439 MB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003917/0.2693, allocations: 11.94 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.2697, allocations: 51.44 kB / 413.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003149/0.27, allocations: 99.11 kB / 413.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.2704, allocations: 103.8 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005386/0.271, allocations: 418.2 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.2712, allocations: 107.1 kB / 414.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.2715, allocations: 151.4 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.2717, allocations: 163.3 kB / 414.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.941e-05/0.2717, allocations: 32 kB / 414.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.535e-05/0.2718, allocations: 36 kB / 414.9 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.941e-05/0.2719, allocations: 75.75 kB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.2721, allocations: 187.1 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003791/0.2724, allocations: 387.8 kB / 415.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2725, allocations: 4 kB / 415.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2725, allocations: 3.938 kB / 415.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.2725, allocations: 0 / 415.5 MB, free: 12.01 MB / 334.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.000921/0.2734, allocations: 0.6314 MB / 416.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.2734, allocations: 12.03 kB / 416.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001963/0.2737, allocations: 44.55 kB / 416.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.2741, allocations: 299.4 kB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.2741, allocations: 20.94 kB / 416.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.2742, allocations: 28.38 kB / 416.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004911/0.2747, allocations: 265.2 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2747, allocations: 0 / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.2747, allocations: 8 kB / 416.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.2747, allocations: 8 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004439/0.2752, allocations: 214.1 kB / 417 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.2767, allocations: 0.9599 MB / 418 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005095/0.2773, allocations: 302 kB / 418.3 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.2775, allocations: 112.8 kB / 418.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.2775, allocations: 4 kB / 418.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.2776, allocations: 34.56 kB / 418.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.2776, allocations: 0 / 418.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001242/0.2788, allocations: 0.5627 MB / 419 MB, free: 8.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.2789, allocations: 55.41 kB / 419 MB, free: 8.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.2791, allocations: 262.6 kB / 419.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.2791, allocations: 29.7 kB / 419.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.2793, allocations: 179.9 kB / 419.5 MB, free: 7.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.989e-05/0.2793, allocations: 74.89 kB / 419.6 MB, free: 7.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.483e-05/0.2794, allocations: 45.94 kB / 419.6 MB, free: 7.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2795, allocations: 338.8 kB / 419.9 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.2797, allocations: 76.42 kB / 420 MB, free: 7.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.2799, allocations: 107.5 kB / 420.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.2803, allocations: 186.4 kB / 420.3 MB, free: 6.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2803, allocations: 4 kB / 420.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006135/0.2809, allocations: 322.7 kB / 420.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.281, allocations: 8 kB / 420.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.281, allocations: 4.062 kB / 420.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000277/0.2813, allocations: 77.66 kB / 420.7 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.2815, allocations: 39.92 kB / 420.7 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/0.2837, allocations: 3.047 MB / 423.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.284, allocations: 27.73 kB / 423.8 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.284, allocations: 4 kB / 423.8 MB, free: 3.074 MB / 334.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.0001442/0.2841, allocations: 145.8 kB / 424 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.2842, allocations: 39.53 kB / 424 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.621e-05/0.2843, allocations: 30.17 kB / 424 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2843, allocations: 4 kB / 424 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.2843, allocations: 0 / 424 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2843, allocations: 0 / 424 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009794/0.2853, allocations: 0.6913 MB / 424.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2853, allocations: 0 / 424.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.2854, allocations: 27.97 kB / 424.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/0.2856, allocations: 77.8 kB / 424.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2856, allocations: 7.938 kB / 424.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.2878, allocations: 3.029 MB / 427.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.2878, allocations: 3.984 kB / 427.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005868/0.2884, allocations: 392.8 kB / 428.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-05/0.2885, allocations: 100.8 kB / 428.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.2886, allocations: 7.984 kB / 428.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.2888, allocations: 27.98 kB / 428.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.2889, allocations: 23.97 kB / 428.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.2889, allocations: 4 kB / 428.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001711/0.2891, allocations: 194 kB / 428.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2891, allocations: 0 / 428.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.2895, allocations: 91.84 kB / 428.7 MB, free: 13.79 MB / 350.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.0001445/0.2896, allocations: 111.1 kB / 428.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007389/0.2904, allocations: 441.1 kB / 429.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2904, allocations: 0 / 429.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004039/0.2908, allocations: 353.3 kB / 429.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.2912, allocations: 48.53 kB / 429.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008513/0.292, allocations: 0.5295 MB / 430.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.2924, allocations: 0.7639 MB / 430.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.168e-05/0.2924, allocations: 23.44 kB / 430.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2924, allocations: 0 / 430.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of Templates: time 0.007236/0.2997, allocations: 5.656 MB / 436.6 MB, free: 5.781 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches