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.001309/0.001309, allocations: 104.4 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.001597/0.001597, 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.389/1.389, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 55.62 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0885/0.08979, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003366/0.0932, allocations: 2.158 MB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009995/0.09422, allocations: 0.6078 MB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.09434, allocations: 8 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.09449, allocations: 23.72 kB / 360.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.138e-05/0.09459, allocations: 47.62 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.09482, allocations: 47.88 kB / 360.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001846/0.09502, allocations: 163.2 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.09517, allocations: 53.45 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.09536, allocations: 67.78 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.09548, allocations: 67.7 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.09551, allocations: 12 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.142e-05/0.0956, allocations: 23.94 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.214e-05/0.09564, allocations: 35.84 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.075e-05/0.09573, allocations: 71.66 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.09594, allocations: 163.7 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.09595, allocations: 0 / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09595, allocations: 0 / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.09597, allocations: 4 kB / 361.1 MB, free: 10.47 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005717/0.09654, allocations: 443.1 kB / 361.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.09659, allocations: 8.031 kB / 361.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.778e-05/0.09664, allocations: 46.73 kB / 361.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.09683, allocations: 28.73 kB / 361.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.09705, allocations: 212 kB / 361.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.09706, allocations: 8.594 kB / 361.8 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.09709, allocations: 20.31 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.09733, allocations: 121.3 kB / 362 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.09735, allocations: 4 kB / 362 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.09737, allocations: 4 kB / 362 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.09738, allocations: 4 kB / 362 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.09756, allocations: 80.59 kB / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007729/0.09834, allocations: 0.5979 MB / 362.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.09862, allocations: 86.55 kB / 362.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.911e-05/0.09871, allocations: 36.98 kB / 362.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.09873, allocations: 0 / 362.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.09877, allocations: 34.55 kB / 362.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.52e-07/0.09878, allocations: 0 / 362.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007244/0.0995, allocations: 259.3 kB / 363.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.09955, allocations: 51.41 kB / 363.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.09968, allocations: 149.7 kB / 363.3 MB, free: 8.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.0997, allocations: 25.7 kB / 363.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.904e-05/0.09977, allocations: 131.9 kB / 363.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.0998, allocations: 27.73 kB / 363.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.09985, allocations: 21.62 kB / 363.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.515e-05/0.09995, allocations: 322.8 kB / 363.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.403e-05/0.1, allocations: 20 kB / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.272e-05/0.1001, allocations: 46.8 kB / 363.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.1002, allocations: 74.48 kB / 363.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1003, allocations: 4 kB / 363.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002866/0.1006, allocations: 134.2 kB / 364.1 MB, free: 7.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.1006, allocations: 4 kB / 364.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.1006, allocations: 0 / 364.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000184/0.1008, allocations: 44.89 kB / 364.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.368e-05/0.1008, allocations: 8 kB / 364.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.1023, allocations: 1.689 MB / 365.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.435e-05/0.1024, allocations: 16.16 kB / 365.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-06/0.1024, allocations: 4 kB / 365.8 MB, free: 5.305 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 (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.079e-05/0.1025, allocations: 125.7 kB / 366 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.551e-05/0.1026, allocations: 11.91 kB / 366 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.1026, allocations: 16.7 kB / 366 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1026, allocations: 0 / 366 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.1026, allocations: 3.938 kB / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1026, allocations: 0 / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.1028, allocations: 217.7 kB / 366.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1028, allocations: 4 kB / 366.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.855e-05/0.1029, allocations: 4 kB / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001189/0.103, allocations: 36.83 kB / 366.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.103, allocations: 0 / 366.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.1043, allocations: 1.681 MB / 367.9 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1043, allocations: 0 / 367.9 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/0.1046, allocations: 216.2 kB / 368.1 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/0.1046, allocations: 85.02 kB / 368.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.1047, allocations: 4.172 kB / 368.2 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.1048, allocations: 8.062 kB / 368.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.959e-05/0.1048, allocations: 11.98 kB / 368.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.1048, allocations: 7.938 kB / 368.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.191e-05/0.1049, allocations: 114.6 kB / 368.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1049, allocations: 0 / 368.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.1053, allocations: 43.84 kB / 368.4 MB, free: 2.496 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 (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.000521/0.1058, allocations: 0.7444 MB / 369.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.1062, allocations: 194.5 kB / 369.3 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1062, allocations: 0 / 369.3 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002028/0.1064, allocations: 154.8 kB / 369.5 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.1067, allocations: 19.11 kB / 369.5 MB, free: 1.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1632/0.2699, allocations: 1.698 MB / 371.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.2702, allocations: 0.713 MB / 371.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.351e-05/0.2703, allocations: 5.812 kB / 371.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.008e-05/0.2704, allocations: 32.94 kB / 372 MB, free: 18.31 MB / 302.1 MB Notification: Performance of SimCode: time 1.362e-06/0.2704, allocations: 0.5938 kB / 372 MB, free: 18.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.2981, allocations: 2.962 MB / 374.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.46, allocations: 10.28 kB / 374.9 MB, free: 17.91 MB / 302.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