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.00138/0.00138, allocations: 106.6 kB / 17.72 MB, free: 5.324 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.002206/0.002206, allocations: 194.9 kB / 18.67 MB, free: 4.387 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.504/1.504, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001664/0.001665, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09904/0.1007, allocations: 46.61 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004455/0.1052, allocations: 2.972 MB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.1065, allocations: 0.7174 MB / 378.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.1067, allocations: 4 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.1069, allocations: 59.38 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.1071, allocations: 107 kB / 378.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.1074, allocations: 91.88 kB / 378.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004379/0.1079, allocations: 414 kB / 379 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.1081, allocations: 107.1 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1083, allocations: 151.5 kB / 379.2 MB, free: 448 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.1085, allocations: 163.3 kB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.574e-05/0.1086, allocations: 32 kB / 379.4 MB, free: 252 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.822e-05/0.1086, allocations: 32 kB / 379.5 MB, free: 220 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.1087, allocations: 71.75 kB / 379.5 MB, free: 148 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2058/0.3145, allocations: 174.4 kB / 379.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008224/0.3154, allocations: 387.2 kB / 380.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3154, allocations: 1.062 kB / 380.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3154, allocations: 0 / 380.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.3154, allocations: 0 / 380.1 MB, free: 10.25 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.00106/0.3165, allocations: 0.6409 MB / 380.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.3165, allocations: 17.64 kB / 380.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.453e-05/0.3166, allocations: 64.44 kB / 380.8 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.989e-05/0.3167, allocations: 41.16 kB / 380.9 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004885/0.3172, allocations: 276.4 kB / 381.1 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.3173, allocations: 21 kB / 381.1 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/0.3173, allocations: 30.31 kB / 381.2 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005893/0.3179, allocations: 259.2 kB / 381.4 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3179, allocations: 0 / 381.4 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.318, allocations: 11.33 kB / 381.4 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.318, allocations: 7.062 kB / 381.4 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005166/0.3185, allocations: 224.9 kB / 381.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.3203, allocations: 0.9631 MB / 382.6 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005911/0.3209, allocations: 305.3 kB / 382.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.3212, allocations: 110.5 kB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.3212, allocations: 5.312 kB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.3212, allocations: 34 kB / 383.1 MB, free: 8.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.694e-06/0.3213, allocations: 0 / 383.1 MB, free: 8.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001382/0.3226, allocations: 0.5586 MB / 383.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.3227, allocations: 54.45 kB / 383.7 MB, free: 8.543 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.323, allocations: 260 kB / 383.9 MB, free: 8.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.323, allocations: 36.05 kB / 384 MB, free: 8.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.784e-05/0.3231, allocations: 181.3 kB / 384.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.779e-05/0.3231, allocations: 80.17 kB / 384.2 MB, free: 8.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.983e-05/0.3232, allocations: 43.94 kB / 384.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.641e-05/0.3233, allocations: 336.5 kB / 384.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.3235, allocations: 79.91 kB / 384.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.3238, allocations: 114 kB / 384.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.3241, allocations: 190.5 kB / 385 MB, free: 7.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3242, allocations: 0.8906 kB / 385 MB, free: 7.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006415/0.3248, allocations: 322.8 kB / 385.3 MB, free: 7.555 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.3248, allocations: 7.047 kB / 385.3 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.3248, allocations: 0 / 385.3 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000302/0.3252, allocations: 81.25 kB / 385.4 MB, free: 7.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.3254, allocations: 38.78 kB / 385.4 MB, free: 7.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.3272, allocations: 3.039 MB / 388.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.3274, allocations: 31.53 kB / 388.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.3274, allocations: 9.375 kB / 388.5 MB, free: 4.555 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.0001239/0.3276, allocations: 139.3 kB / 388.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/0.3276, allocations: 40.92 kB / 388.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.276e-05/0.3277, allocations: 31.52 kB / 388.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3277, allocations: 2.781 kB / 388.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.3277, allocations: 1.188 kB / 388.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3277, allocations: 4.969 kB / 388.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3287, allocations: 0.6851 MB / 389.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3287, allocations: 1.656 kB / 389.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.3289, allocations: 26.8 kB / 389.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.3291, allocations: 74.83 kB / 389.5 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.3291, allocations: 9.125 kB / 389.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.3309, allocations: 3.039 MB / 392.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3309, allocations: 3.375 kB / 392.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006399/0.3315, allocations: 381.7 kB / 392.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.491e-05/0.3316, allocations: 105.7 kB / 393 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.3316, allocations: 6.188 kB / 393 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.3319, allocations: 30.03 kB / 393.1 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.164e-05/0.332, allocations: 23.78 kB / 393.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.332, allocations: 9.312 kB / 393.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.3322, allocations: 190.4 kB / 393.3 MB, free: 464 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3322, allocations: 0 / 393.3 MB, free: 464 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004133/0.3326, allocations: 94.86 kB / 393.4 MB, free: 444 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.0009685/0.3336, allocations: 0.9155 MB / 394.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008811/0.3345, allocations: 455.4 kB / 394.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3345, allocations: 0 / 394.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004776/0.335, allocations: 349 kB / 395.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.3354, allocations: 47.62 kB / 395.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004828/0.3402, allocations: 2.704 MB / 397.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005746/0.3409, allocations: 0.7728 MB / 398.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.341, allocations: 22.72 kB / 398.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.3412, allocations: 86.16 kB / 398.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of SimCode: time 1.784e-06/0.3412, allocations: 1.688 kB / 398.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03757/0.3788, allocations: 6.416 MB / 405.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.51, allocations: 21.94 kB / 405.1 MB, free: 10.86 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