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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001074, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 62.66 kB / 307 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1058, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004161/0.11, allocations: 3.012 MB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.1114, allocations: 0.7673 MB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.1116, allocations: 4 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.1118, allocations: 51.44 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.112, allocations: 103.1 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.1124, allocations: 99.84 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004209/0.1128, allocations: 414.2 kB / 362 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.113, allocations: 115.1 kB / 362.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.1133, allocations: 159.4 kB / 362.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.1135, allocations: 163.3 kB / 362.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.687e-05/0.1135, allocations: 28 kB / 362.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.316e-05/0.1136, allocations: 36 kB / 362.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.874e-05/0.1137, allocations: 79.67 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.1139, allocations: 179.1 kB / 362.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003527/0.1142, allocations: 382.9 kB / 363.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1143, allocations: 0 / 363.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1143, allocations: 4 kB / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.1143, allocations: 0 / 363.1 MB, free: 8.391 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.0009581/0.1152, allocations: 0.6391 MB / 363.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1153, allocations: 12.03 kB / 363.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.344e-05/0.1154, allocations: 58.73 kB / 363.8 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.1156, allocations: 48.55 kB / 363.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.1159, allocations: 279.6 kB / 364.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.1159, allocations: 20.88 kB / 364.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.116, allocations: 28.38 kB / 364.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.1165, allocations: 269 kB / 364.5 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1165, allocations: 0 / 364.5 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.1166, allocations: 12 kB / 364.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.1166, allocations: 8 kB / 364.5 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004965/0.1171, allocations: 218.1 kB / 364.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.1188, allocations: 0.9678 MB / 365.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.1193, allocations: 299.6 kB / 366 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.1196, allocations: 108.8 kB / 366.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.1196, allocations: 4 kB / 366.1 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.1196, allocations: 38.56 kB / 366.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.512e-06/0.1196, allocations: 3.938 kB / 366.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001291/0.1209, allocations: 0.5636 MB / 366.7 MB, free: 4.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.121, allocations: 51.41 kB / 366.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.1212, allocations: 258.6 kB / 367 MB, free: 4.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.1213, allocations: 33.7 kB / 367 MB, free: 4.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1214, allocations: 179.9 kB / 367.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.124e-05/0.1214, allocations: 70.98 kB / 367.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.513e-05/0.1215, allocations: 49.94 kB / 367.3 MB, free: 3.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1217, allocations: 330.8 kB / 367.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.1219, allocations: 76.42 kB / 367.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.1221, allocations: 103.5 kB / 367.8 MB, free: 3.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.1225, allocations: 196.1 kB / 368 MB, free: 3.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1226, allocations: 0 / 368 MB, free: 3.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006623/0.1232, allocations: 326.7 kB / 368.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1232, allocations: 7.281 kB / 368.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1233, allocations: 4 kB / 368.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.1235, allocations: 77.66 kB / 368.4 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.1237, allocations: 35.92 kB / 368.4 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1391/0.2628, allocations: 3.049 MB / 371.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.2631, allocations: 26.27 kB / 371.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.2632, allocations: 7.062 kB / 371.5 MB, free: 18.59 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.0001381/0.2633, allocations: 140.9 kB / 371.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.2634, allocations: 28.44 kB / 371.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.529e-05/0.2634, allocations: 38.92 kB / 371.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.2634, allocations: 1.688 kB / 371.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.2635, allocations: 5.656 kB / 371.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2635, allocations: 2.141 kB / 371.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000999/0.2645, allocations: 0.6785 MB / 372.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2645, allocations: 4.281 kB / 372.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.2646, allocations: 30.09 kB / 372.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.2648, allocations: 71.44 kB / 372.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.2649, allocations: 5.859 kB / 372.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/0.2665, allocations: 3.043 MB / 375.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2665, allocations: 0.7812 kB / 375.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005492/0.267, allocations: 383.1 kB / 375.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.451e-05/0.2671, allocations: 103.7 kB / 376 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.2671, allocations: 6.016 kB / 376.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.2674, allocations: 32.91 kB / 376.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.2675, allocations: 23.02 kB / 376.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.2675, allocations: 11.66 kB / 376.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001578/0.2676, allocations: 187.4 kB / 376.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2676, allocations: 0 / 376.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003746/0.268, allocations: 98.84 kB / 376.4 MB, free: 15.09 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.000726/0.2688, allocations: 0.913 MB / 377.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007052/0.2695, allocations: 444.7 kB / 377.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2695, allocations: 0.5 kB / 377.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.2699, allocations: 354.6 kB / 378.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004096/0.2703, allocations: 51.73 kB / 378.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.2733, allocations: 2.723 MB / 380.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.2735, allocations: 0.7647 MB / 381.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.2736, allocations: 26.53 kB / 381.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.2737, allocations: 90.61 kB / 381.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2737, allocations: 0 / 381.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.3019, allocations: 6.317 MB / 388.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.403/9.705, allocations: 12.53 kB / 388.1 MB, free: 10.27 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv","/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