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.001174/0.001174, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 55.38 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0879/0.0891, 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.003504/0.09263, allocations: 2.158 MB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.09365, allocations: 0.6117 MB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.09378, allocations: 4 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001099/0.09391, allocations: 15.8 kB / 360.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.394e-05/0.09401, allocations: 55.55 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.09425, allocations: 47.88 kB / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001885/0.09444, allocations: 155.2 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.0946, allocations: 65.42 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.09479, allocations: 67.73 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.09491, allocations: 71.73 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.09494, allocations: 12 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.539e-05/0.09503, allocations: 20 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.95e-05/0.09506, allocations: 31.86 kB / 360.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.579e-05/0.09514, allocations: 71.61 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.09536, allocations: 171.7 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.09537, allocations: 0 / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.09538, allocations: 0 / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.09539, allocations: 0 / 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.0005823/0.09598, allocations: 443.1 kB / 361.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.09602, allocations: 8.031 kB / 361.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.02e-05/0.09607, allocations: 46.73 kB / 361.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.09625, allocations: 28.73 kB / 361.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.09648, allocations: 212 kB / 361.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.0965, allocations: 8.609 kB / 361.8 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.09652, allocations: 12.38 kB / 361.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.09675, allocations: 121.3 kB / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.09676, allocations: 0 / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.09679, allocations: 4 kB / 362 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.0968, allocations: 7.938 kB / 362 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.09699, allocations: 84.64 kB / 362.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007674/0.09776, allocations: 0.5978 MB / 362.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.09804, allocations: 86.62 kB / 362.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.518e-05/0.09813, allocations: 32.97 kB / 362.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.09815, allocations: 0 / 362.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.09819, allocations: 34.56 kB / 362.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.09819, allocations: 3.938 kB / 362.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006699/0.09887, allocations: 267.3 kB / 363.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/0.09891, allocations: 51.41 kB / 363.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.09904, allocations: 149.7 kB / 363.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.09906, allocations: 29.7 kB / 363.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.09913, allocations: 131.9 kB / 363.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.27e-05/0.09919, allocations: 19.75 kB / 363.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.09924, allocations: 25.61 kB / 363.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.09934, allocations: 318.8 kB / 363.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.223e-05/0.09941, allocations: 19.98 kB / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-05/0.09949, allocations: 46.56 kB / 363.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001372/0.09964, allocations: 70.48 kB / 363.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.09965, allocations: 4 kB / 363.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002746/0.09993, allocations: 138.3 kB / 364.1 MB, free: 7.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.09995, allocations: 4 kB / 364.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.09996, allocations: 4.062 kB / 364.1 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.1001, allocations: 40.83 kB / 364.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.365e-05/0.1002, allocations: 7.938 kB / 364.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.1017, allocations: 1.689 MB / 365.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.1018, allocations: 12.27 kB / 365.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.1018, allocations: 4 kB / 365.8 MB, free: 5.309 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.062e-05/0.1019, allocations: 125.7 kB / 366 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.406e-05/0.1019, allocations: 7.906 kB / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.683e-05/0.1019, allocations: 20.91 kB / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.102, allocations: 0 / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.102, allocations: 7.938 kB / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.102, allocations: 0 / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.1022, allocations: 213.5 kB / 366.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1023, allocations: 3.984 kB / 366.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.391e-05/0.1023, allocations: 0 / 366.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001223/0.1024, allocations: 40.83 kB / 366.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.1024, allocations: 0 / 366.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001323/0.1038, allocations: 1.674 MB / 367.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1038, allocations: 3.984 kB / 367.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.1041, allocations: 216.3 kB / 368.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.1041, allocations: 89.02 kB / 368.2 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.1042, allocations: 8 kB / 368.2 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.1043, allocations: 7.984 kB / 368.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.1043, allocations: 7.984 kB / 368.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.1043, allocations: 3.984 kB / 368.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.661e-05/0.1044, allocations: 122.6 kB / 368.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1044, allocations: 0 / 368.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003528/0.1048, 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.0006758/0.1055, allocations: 0.7444 MB / 369.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004336/0.1059, allocations: 186.6 kB / 369.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1059, allocations: 4.125 kB / 369.3 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002031/0.1061, allocations: 158.6 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.0002535/0.1064, allocations: 10.97 kB / 369.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.139/0.2454, allocations: 1.706 MB / 371.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.2456, allocations: 0.7086 MB / 371.9 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.201e-05/0.2457, allocations: 7.016 kB / 371.9 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.917e-05/0.2457, allocations: 33.81 kB / 372 MB, free: 18.32 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2457, allocations: 1.594 kB / 372 MB, free: 18.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.2692, allocations: 2.958 MB / 374.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.97, allocations: 15.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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