Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.008/1.008, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.016e-05/3.193e-05, allocations: 6.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003646/0.003677, allocations: 3.037 MB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.005367, allocations: 0.7477 MB / 276.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.005531, allocations: 4 kB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.005711, allocations: 59.38 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.005903, allocations: 115 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.00633, allocations: 99.84 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004795/0.006809, allocations: 429.9 kB / 277.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.007086, allocations: 67.64 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003731/0.007459, allocations: 239.5 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.007615, allocations: 123.7 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.412e-05/0.007659, allocations: 39.98 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.07e-05/0.00773, allocations: 32 kB / 277.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.554e-05/0.007776, allocations: 71.69 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.646e-05/0.007872, allocations: 127.7 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.008157, allocations: 271 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.00816, allocations: 3.938 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.008162, allocations: 0 / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.008168, allocations: 0 / 278.4 MB, free: 12.09 MB / 266.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.0007317/0.008899, allocations: 0.6636 MB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.008941, allocations: 8.031 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.009115, allocations: 76.62 kB / 279.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.009559, allocations: 220 kB / 279.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.009579, allocations: 25.03 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.559e-05/0.009615, allocations: 32.38 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/0.01, allocations: 357.5 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.01001, allocations: 192 / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.01004, allocations: 16.38 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.01005, allocations: 11.94 kB / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.01021, allocations: 99.86 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.01129, allocations: 0.8484 MB / 280.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.01159, allocations: 175.1 kB / 280.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.968e-05/0.01168, allocations: 63.66 kB / 281 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.01171, allocations: 4 kB / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.01174, allocations: 41.39 kB / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.01174, allocations: 0 / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006337/0.01237, allocations: 319.9 kB / 281.3 MB, free: 8.949 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.0124, allocations: 55.41 kB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.01258, allocations: 292.2 kB / 281.7 MB, free: 8.582 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.0126, allocations: 29.7 kB / 281.7 MB, free: 8.547 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.0127, allocations: 235.2 kB / 281.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.01274, allocations: 71.39 kB / 282 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.87e-05/0.0128, allocations: 47.59 kB / 282.1 MB, free: 8.184 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.01292, allocations: 0.5078 MB / 282.6 MB, free: 7.664 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.31e-05/0.01299, allocations: 44.44 kB / 282.6 MB, free: 7.621 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.01307, allocations: 67.97 kB / 282.7 MB, free: 7.543 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.0132, allocations: 113.6 kB / 282.8 MB, free: 7.422 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.0132, allocations: 0 / 282.8 MB, free: 7.422 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005948/0.0138, allocations: 233.3 kB / 283 MB, free: 7.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.01382, allocations: 12.06 kB / 283 MB, free: 7.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.01382, allocations: 7.922 kB / 283 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002994/0.01412, allocations: 99.23 kB / 283.1 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.01422, allocations: 39.92 kB / 283.2 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/0.01611, allocations: 3.676 MB / 286.8 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.807e-05/0.0162, allocations: 23.95 kB / 286.9 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.01621, allocations: 4 kB / 286.9 MB, free: 3.07 MB / 266.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 (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.0001036/0.01631, allocations: 172.6 kB / 287 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.984e-05/0.01635, allocations: 31.86 kB / 287.1 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.437e-05/0.01638, allocations: 22.28 kB / 287.1 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01638, allocations: 4.188 kB / 287.1 MB, free: 2.832 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.01639, allocations: 4 kB / 287.1 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.01639, allocations: 7.922 kB / 287.1 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005206/0.01691, allocations: 0.5592 MB / 287.7 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.01692, allocations: 4 kB / 287.7 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-05/0.01698, allocations: 19.98 kB / 287.7 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001871/0.01716, allocations: 95.25 kB / 287.8 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.01718, allocations: 7.984 kB / 287.8 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001824/0.019, allocations: 3.677 MB / 291.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.019, allocations: 0 / 291.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.01929, allocations: 362.7 kB / 291.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.617e-05/0.01932, allocations: 31.78 kB / 291.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.01933, allocations: 0 / 291.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.01945, allocations: 32.2 kB / 291.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.359e-05/0.01952, allocations: 31.89 kB / 291.9 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.01953, allocations: 8 kB / 291.9 MB, free: 13.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001117/0.01965, allocations: 197.1 kB / 292.1 MB, free: 13.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01965, allocations: 0 / 292.1 MB, free: 13.47 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003044/0.01995, allocations: 99.84 kB / 292.2 MB, free: 13.38 MB / 282.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 (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.0001112/0.02006, allocations: 107.2 kB / 292.3 MB, free: 13.26 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004522/0.02051, allocations: 486.1 kB / 292.8 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.02052, allocations: 0 / 292.8 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003671/0.02088, allocations: 431.2 kB / 293.2 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.02116, allocations: 43.47 kB / 293.3 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000934/0.02209, allocations: 485.1 kB / 293.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.67e-05/0.02216, allocations: 96.3 kB / 293.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.807e-05/0.02223, allocations: 17.94 kB / 293.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.58e-05/0.02227, allocations: 24.5 kB / 293.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02228, allocations: 0 / 293.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of Templates: time 0.006104/0.02838, allocations: 3.621 MB / 297.5 MB, free: 8.031 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.122595012653619]