Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",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.001199/0.001207, allocations: 106.5 kB / 17.72 MB, free: 5.352 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.001151/0.001151, allocations: 191 kB / 18.66 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001699/0.0017, allocations: 55.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09248, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004484/0.09701, allocations: 2.956 MB / 377.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.09843, allocations: 0.729 MB / 378.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002637/0.09874, allocations: 4 kB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.09894, allocations: 51.44 kB / 378.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.09917, allocations: 111 kB / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.09945, allocations: 83.88 kB / 378.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004017/0.09986, allocations: 414 kB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.1001, allocations: 111.1 kB / 379.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.1003, allocations: 147.5 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.1005, allocations: 167.3 kB / 379.4 MB, free: 308 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.667e-05/0.1005, allocations: 32 kB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.722e-05/0.1006, allocations: 32 kB / 379.5 MB, free: 244 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.531e-05/0.1006, allocations: 79.67 kB / 379.5 MB, free: 164 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2765/0.3771, allocations: 166.2 kB / 379.7 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009512/0.3781, allocations: 385.1 kB / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.3782, allocations: 0 / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.3782, allocations: 0 / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.064e-05/0.3782, allocations: 0.8438 kB / 380.1 MB, free: 9.699 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001787/0.38, allocations: 0.6335 MB / 380.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.463e-05/0.3801, allocations: 13.48 kB / 380.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001303/0.3803, allocations: 69.06 kB / 380.8 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.3804, allocations: 40.08 kB / 380.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006818/0.3811, allocations: 277.4 kB / 381.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.3812, allocations: 22.25 kB / 381.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.336e-05/0.3812, allocations: 27.06 kB / 381.2 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007222/0.3819, allocations: 259.9 kB / 381.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.382, allocations: 3.062 kB / 381.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.382, allocations: 15.81 kB / 381.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.382, allocations: 9.5 kB / 381.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006032/0.3827, allocations: 215.4 kB / 381.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002102/0.3848, allocations: 0.9626 MB / 382.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005883/0.3854, allocations: 301 kB / 382.9 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.3856, allocations: 109.2 kB / 383 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.3857, allocations: 2.875 kB / 383 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.3857, allocations: 33.84 kB / 383 MB, free: 8.336 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.434e-06/0.3857, allocations: 0.5 kB / 383 MB, free: 8.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001401/0.3871, allocations: 0.5583 MB / 383.6 MB, free: 8.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.3872, allocations: 54.58 kB / 383.7 MB, free: 8.008 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003566/0.3875, allocations: 260.5 kB / 383.9 MB, free: 7.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.3876, allocations: 34.89 kB / 383.9 MB, free: 7.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.3877, allocations: 184.1 kB / 384.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.3878, allocations: 71.72 kB / 384.2 MB, free: 7.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.3879, allocations: 44.86 kB / 384.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.388, allocations: 335.6 kB / 384.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.3882, allocations: 73.17 kB / 384.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.3885, allocations: 120.5 kB / 384.8 MB, free: 7.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.3889, allocations: 185.6 kB / 384.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3889, allocations: 0 / 384.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006673/0.3896, allocations: 327.1 kB / 385.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3896, allocations: 5.5 kB / 385.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3896, allocations: 0.9375 kB / 385.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002976/0.3899, allocations: 83.06 kB / 385.3 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.3901, allocations: 40.42 kB / 385.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/0.3921, allocations: 3.04 MB / 388.4 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.3923, allocations: 32.23 kB / 388.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.3924, allocations: 9.375 kB / 388.5 MB, free: 4.367 MB / 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 (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.0001256/0.3925, allocations: 143.3 kB / 388.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.531e-05/0.3926, allocations: 29.58 kB / 388.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.303e-05/0.3926, allocations: 31.97 kB / 388.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3926, allocations: 2.938 kB / 388.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.3926, allocations: 1.062 kB / 388.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3926, allocations: 2.469 kB / 388.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.3937, allocations: 0.6815 MB / 389.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3937, allocations: 1.219 kB / 389.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.3939, allocations: 27.73 kB / 389.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.3941, allocations: 74.7 kB / 389.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.3941, allocations: 8.516 kB / 389.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.3958, allocations: 3.043 MB / 392.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3958, allocations: 1.906 kB / 392.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005953/0.3964, allocations: 384.9 kB / 392.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.318e-05/0.3965, allocations: 108.7 kB / 393 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.3965, allocations: 5.5 kB / 393 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.3968, allocations: 27 kB / 393 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.3968, allocations: 19.23 kB / 393 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.3969, allocations: 13.33 kB / 393.1 MB, free: 388 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001755/0.397, allocations: 189.4 kB / 393.2 MB, free: 276 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.397, allocations: 0 / 393.2 MB, free: 276 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.3974, allocations: 91.34 kB / 393.3 MB, free: 260 kB / 318.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.0008939/0.3983, allocations: 0.9186 MB / 394.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007658/0.3991, allocations: 454.8 kB / 394.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3991, allocations: 0 / 394.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.3996, allocations: 349.7 kB / 395 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.4, allocations: 47.28 kB / 395.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.4034, allocations: 2.702 MB / 397.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.4038, allocations: 0.7646 MB / 398.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.4039, allocations: 24.22 kB / 398.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.4041, allocations: 91.2 kB / 398.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4041, allocations: 0 / 398.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04894/0.453, allocations: 6.533 MB / 405.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.52, allocations: 5.031 kB / 405.2 MB, free: 10.66 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches