Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 110.2 kB / 17.75 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 185.4 kB / 18.67 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 55.86 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2226, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003767/0.2264, allocations: 3.001 MB / 404.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009911/0.2274, allocations: 0.6777 MB / 405.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.2275, allocations: 7.938 kB / 405.1 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001445/0.2277, allocations: 59.5 kB / 405.2 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.2279, allocations: 95.06 kB / 405.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.2281, allocations: 95.8 kB / 405.3 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000362/0.2285, allocations: 414.1 kB / 405.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.2287, allocations: 107.1 kB / 405.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.2289, allocations: 155.4 kB / 406 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.2291, allocations: 163.3 kB / 406.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.2291, allocations: 32 kB / 406.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.2292, allocations: 32 kB / 406.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.001e-05/0.2293, allocations: 67.77 kB / 406.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.2294, allocations: 187.1 kB / 406.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.2298, allocations: 387.7 kB / 406.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.2298, allocations: 0 / 406.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2298, allocations: 0 / 406.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.2298, allocations: 0 / 406.9 MB, free: 3.387 MB / 318.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.0009337/0.2307, allocations: 0.6276 MB / 407.5 MB, free: 2.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2308, allocations: 11.89 kB / 407.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.166e-05/0.2309, allocations: 40.47 kB / 407.5 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.2312, allocations: 275.6 kB / 407.8 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.2312, allocations: 20.94 kB / 407.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.2313, allocations: 28.38 kB / 407.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000517/0.2318, allocations: 261.2 kB / 408.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2318, allocations: 0 / 408.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.2318, allocations: 16 kB / 408.1 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.2319, allocations: 4 kB / 408.1 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.2323, allocations: 214.1 kB / 408.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.2339, allocations: 0.9677 MB / 409.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004805/0.2344, allocations: 303 kB / 409.6 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002312/0.2346, allocations: 111.9 kB / 409.7 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.2346, allocations: 4 kB / 409.7 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.2347, allocations: 34.56 kB / 409.8 MB, free: 308 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.2347, allocations: 4 kB / 409.8 MB, free: 304 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001229/0.2359, allocations: 0.5611 MB / 410.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/0.2359, allocations: 51.41 kB / 410.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.2362, allocations: 270.6 kB / 410.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.2362, allocations: 29.7 kB / 410.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.66e-05/0.2363, allocations: 179.9 kB / 410.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.2363, allocations: 67 kB / 410.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.357e-05/0.2364, allocations: 41.95 kB / 410.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.2365, allocations: 334.8 kB / 411.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.2367, allocations: 72.42 kB / 411.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.2369, allocations: 116.1 kB / 411.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.2373, allocations: 194.3 kB / 411.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2373, allocations: 3.938 kB / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006094/0.2379, allocations: 322.7 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.238, allocations: 4 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.238, allocations: 4 kB / 412 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.2382, allocations: 81.7 kB / 412 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.2384, allocations: 39.92 kB / 412.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.2407, allocations: 3.051 MB / 415.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.2409, allocations: 31.77 kB / 415.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.2409, allocations: 4 kB / 415.2 MB, free: 10.46 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.0001466/0.2411, allocations: 140 kB / 415.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.475e-05/0.2412, allocations: 31.66 kB / 415.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.361e-05/0.2412, allocations: 30.17 kB / 415.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2412, allocations: 0 / 415.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2412, allocations: 0 / 415.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.2413, allocations: 108.8 kB / 415.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.2413, allocations: 4 kB / 415.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.2416, allocations: 31.97 kB / 415.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.36e-05/0.2417, allocations: 19.97 kB / 415.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007903/0.2425, allocations: 366.1 kB / 415.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006549/0.2432, allocations: 470.2 kB / 416.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001809/0.2433, allocations: 79.97 kB / 416.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.2435, allocations: 186 kB / 416.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of Backend: time 2.4e-07/0.2435, allocations: 0 / 416.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008621/0.2444, allocations: 463.5 kB / 417.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of SimCode: time 0.001012/0.2454, allocations: 1.011 MB / 418.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of Templates: time 0.007511/0.2529, allocations: 3.939 MB / 422 MB, free: 3.52 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches