Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 109 kB / 17.06 MB, free: 5.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 195 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.991/1.991, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 51.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3151, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003706/0.3189, allocations: 2.14 MB / 402.4 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.32, allocations: 0.5338 MB / 402.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/0.3201, allocations: 4 kB / 402.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.3203, allocations: 23.78 kB / 402.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.3204, allocations: 43.58 kB / 403 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.3207, allocations: 43.89 kB / 403 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.3209, allocations: 155.2 kB / 403.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.3211, allocations: 64.38 kB / 403.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001754/0.3213, allocations: 63.78 kB / 403.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.3215, allocations: 71.62 kB / 403.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.3215, allocations: 12 kB / 403.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.439e-05/0.3216, allocations: 20 kB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.831e-05/0.3216, allocations: 23.92 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.242e-05/0.3217, allocations: 75.66 kB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.3219, allocations: 161.1 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.322, allocations: 0 / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.322, allocations: 0 / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.322, allocations: 0 / 403.6 MB, free: 5.41 MB / 318.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.0006353/0.3226, allocations: 439.2 kB / 404.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3227, allocations: 12.03 kB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.787e-05/0.3227, allocations: 46.73 kB / 404.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.286e-05/0.3228, allocations: 12.84 kB / 404.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.3231, allocations: 208 kB / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.3231, allocations: 8.609 kB / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.3232, allocations: 12.38 kB / 404.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002441/0.3234, allocations: 124.3 kB / 404.5 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.3234, allocations: 0 / 404.5 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.3235, allocations: 8 kB / 404.5 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.3235, allocations: 0 / 404.5 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.3237, allocations: 80.66 kB / 404.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.3247, allocations: 0.6018 MB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.3251, allocations: 98.48 kB / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.551e-05/0.3252, allocations: 28.97 kB / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.3252, allocations: 0 / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.3252, allocations: 34.56 kB / 405.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.3252, allocations: 0 / 405.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008833/0.3261, allocations: 267.2 kB / 405.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.3262, allocations: 55.41 kB / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.3264, allocations: 145.8 kB / 405.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.3264, allocations: 25.7 kB / 405.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3265, allocations: 131.9 kB / 406 MB, free: 2.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.3265, allocations: 19.72 kB / 406 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.3266, allocations: 17.72 kB / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3267, allocations: 322.8 kB / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.337e-05/0.3268, allocations: 23.98 kB / 406.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.82e-05/0.327, allocations: 50.5 kB / 406.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.3271, allocations: 58.56 kB / 406.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3271, allocations: 4 kB / 406.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003794/0.3275, allocations: 142.2 kB / 406.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3276, allocations: 4 kB / 406.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3276, allocations: 0 / 406.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.3278, allocations: 36.84 kB / 406.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.799e-05/0.3279, allocations: 7.984 kB / 406.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.3299, allocations: 1.693 MB / 408.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.999e-05/0.33, allocations: 15.84 kB / 408.3 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.3301, allocations: 0 / 408.3 MB, free: 276 kB / 318.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 0.0001222/0.3302, allocations: 131.5 kB / 408.5 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.3302, allocations: 11.84 kB / 408.5 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.522e-05/0.3303, allocations: 12.72 kB / 408.5 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3303, allocations: 0 / 408.5 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3303, allocations: 0 / 408.5 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3303, allocations: 4.031 kB / 408.5 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.3306, allocations: 213.6 kB / 408.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3306, allocations: 7.938 kB / 408.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.331e-05/0.3307, allocations: 3.984 kB / 408.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001516/0.3308, allocations: 36.84 kB / 408.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3308, allocations: 192 / 408.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001639/0.3325, allocations: 1.689 MB / 410.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3325, allocations: 3.938 kB / 410.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003691/0.3329, allocations: 220.2 kB / 410.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.748e-05/0.333, allocations: 85.02 kB / 410.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.333, allocations: 0 / 410.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.3331, allocations: 4 kB / 410.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.3332, allocations: 7.984 kB / 410.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.3332, allocations: 4 kB / 410.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001127/0.3333, allocations: 113.8 kB / 410.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3333, allocations: 0 / 410.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005005/0.3338, allocations: 39.91 kB / 410.9 MB, free: 13.46 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.0007116/0.3345, allocations: 0.7521 MB / 411.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004392/0.335, allocations: 198.4 kB / 411.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.335, allocations: 4 kB / 411.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.3352, allocations: 150.9 kB / 412 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.3355, allocations: 18.59 kB / 412 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.3375, allocations: 1.706 MB / 413.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.3378, allocations: 0.7079 MB / 414.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.833e-05/0.3378, allocations: 12.42 kB / 414.4 MB, free: 9.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.898e-05/0.3379, allocations: 31.42 kB / 414.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3379, allocations: 0 / 414.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.3631, allocations: 3.067 MB / 417.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.75/17.11, allocations: 3.125 kB / 417.5 MB, free: 6.75 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches