Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001214, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3053, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003058/0.3084, allocations: 2.161 MB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009472/0.3094, allocations: 0.6078 MB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.688e-05/0.3095, allocations: 0 / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.3096, allocations: 27.78 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.933e-05/0.3097, allocations: 43.56 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.3099, allocations: 55.88 kB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.3101, allocations: 159.2 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.3103, allocations: 61.42 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.3104, allocations: 59.8 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.3106, allocations: 67.69 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.3106, allocations: 15.98 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.348e-05/0.3107, allocations: 32 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.3107, allocations: 35.8 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.575e-05/0.3108, allocations: 67.67 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.311, allocations: 170.2 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.311, allocations: 0 / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.311, allocations: 4 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.311, allocations: 0 / 412.3 MB, free: 13.96 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000551/0.3116, allocations: 443 kB / 412.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3117, allocations: 16.03 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.82e-05/0.3117, allocations: 42.73 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.3119, allocations: 28.83 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.3121, allocations: 214.9 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3122, allocations: 8.609 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.3122, allocations: 12.38 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.3124, allocations: 119.6 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.3124, allocations: 0 / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.3125, allocations: 12 kB / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3125, allocations: 0 / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.3127, allocations: 80.66 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007369/0.3134, allocations: 0.598 MB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.3137, allocations: 82.62 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.384e-05/0.3138, allocations: 32.97 kB / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.3138, allocations: 0 / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.3138, allocations: 38.5 kB / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.3138, allocations: 0 / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006914/0.3145, allocations: 259.4 kB / 414.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.3146, allocations: 55.41 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.3147, allocations: 156.6 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.3147, allocations: 33.7 kB / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.921e-05/0.3148, allocations: 124.1 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.3148, allocations: 19.84 kB / 414.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.647e-05/0.3149, allocations: 29.66 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.315, allocations: 318.8 kB / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.571e-05/0.3151, allocations: 20 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.156e-05/0.3152, allocations: 46.55 kB / 415.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.3153, allocations: 78.48 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3153, allocations: 0 / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002709/0.3156, allocations: 130.3 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.3156, allocations: 4 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3156, allocations: 12.44 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.3158, allocations: 40.83 kB / 415.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.674e-05/0.3159, allocations: 11.94 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.3174, allocations: 1.678 MB / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.3175, allocations: 11.97 kB / 417 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.3175, allocations: 8.062 kB / 417 MB, free: 8.805 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.91e-05/0.3176, allocations: 121.8 kB / 417.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.3176, allocations: 7.953 kB / 417.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.3177, allocations: 12.72 kB / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3177, allocations: 0 / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.3177, allocations: 0 / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3177, allocations: 3.984 kB / 417.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.3179, allocations: 217.5 kB / 417.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3179, allocations: 0 / 417.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.752e-05/0.318, allocations: 8.125 kB / 417.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001297/0.3181, allocations: 44.77 kB / 417.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3181, allocations: 0 / 417.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/0.3194, allocations: 1.685 MB / 419.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3194, allocations: 0 / 419.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/0.3197, allocations: 216.3 kB / 419.3 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.762e-05/0.3198, allocations: 85.06 kB / 419.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.3198, allocations: 0 / 419.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.964e-05/0.3199, allocations: 11.98 kB / 419.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.32, allocations: 7.984 kB / 419.4 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.32, allocations: 4.125 kB / 419.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.426e-05/0.3201, allocations: 118.8 kB / 419.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3201, allocations: 0 / 419.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003539/0.3204, allocations: 43.89 kB / 419.6 MB, free: 6.004 MB / 334.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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005511/0.321, allocations: 0.7483 MB / 420.3 MB, free: 5.227 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003763/0.3214, allocations: 194.5 kB / 420.5 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3214, allocations: 0 / 420.5 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002091/0.3216, allocations: 154.7 kB / 420.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.3219, allocations: 15.94 kB / 420.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.3238, allocations: 1.725 MB / 422.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.3241, allocations: 0.708 MB / 423.1 MB, free: 2.281 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.015e-05/0.3241, allocations: 4.422 kB / 423.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.237e-05/0.3242, allocations: 31.44 kB / 423.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3242, allocations: 4 kB / 423.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02453/0.3487, allocations: 3.054 MB / 426.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.38, allocations: 14.39 kB / 426.2 MB, free: 15.29 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches