Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001157, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2762, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004014/0.2802, allocations: 3.037 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.2814, allocations: 0.7362 MB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2816, allocations: 8 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.2818, allocations: 51.44 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.2819, allocations: 107 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002888/0.2822, allocations: 103.9 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.2827, allocations: 410.2 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.2829, allocations: 107.1 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.2832, allocations: 167.4 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.2834, allocations: 163.3 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.647e-05/0.2834, allocations: 32 kB / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.477e-05/0.2835, allocations: 36 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.555e-05/0.2836, allocations: 75.69 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.2837, allocations: 179.1 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003576/0.2841, allocations: 388.3 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2841, allocations: 3.938 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2841, allocations: 0 / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.2841, allocations: 0 / 414.3 MB, free: 11.95 MB / 334.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.0009114/0.2851, allocations: 0.6353 MB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2851, allocations: 11.97 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.182e-05/0.2852, allocations: 70.72 kB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.2853, allocations: 40.56 kB / 415.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.2857, allocations: 291.5 kB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.2857, allocations: 20.94 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.2858, allocations: 28.38 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004807/0.2863, allocations: 257 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2863, allocations: 0 / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.2863, allocations: 8 kB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2863, allocations: 12 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00048/0.2868, allocations: 222.1 kB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.2884, allocations: 0.9638 MB / 416.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.2889, allocations: 302 kB / 417.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002212/0.2891, allocations: 108.8 kB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.2891, allocations: 4 kB / 417.3 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.2892, allocations: 38.56 kB / 417.3 MB, free: 8.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2892, allocations: 0 / 417.3 MB, free: 8.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00126/0.2905, allocations: 0.5627 MB / 417.9 MB, free: 8.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.2905, allocations: 51.41 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.2908, allocations: 262.6 kB / 418.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.2908, allocations: 29.7 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.2909, allocations: 179.9 kB / 418.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.85e-05/0.291, allocations: 74.91 kB / 418.5 MB, free: 7.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-05/0.2911, allocations: 37.95 kB / 418.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2912, allocations: 342.8 kB / 418.8 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.2914, allocations: 80.42 kB / 418.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.2916, allocations: 107.4 kB / 419 MB, free: 6.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.292, allocations: 190.4 kB / 419.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.292, allocations: 0 / 419.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006237/0.2927, allocations: 322.8 kB / 419.5 MB, free: 6.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2927, allocations: 8 kB / 419.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2927, allocations: 4 kB / 419.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.293, allocations: 77.61 kB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.2932, allocations: 35.97 kB / 419.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.2954, allocations: 3.051 MB / 422.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.2956, allocations: 35.73 kB / 422.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.2957, allocations: 11.94 kB / 422.7 MB, free: 2.918 MB / 334.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.0001499/0.2958, allocations: 145.7 kB / 422.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.2959, allocations: 27.72 kB / 422.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.2959, allocations: 34.11 kB / 422.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2959, allocations: 4 kB / 422.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.296, allocations: 0 / 422.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.296, allocations: 4 kB / 422.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009698/0.2969, allocations: 0.6757 MB / 423.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.297, allocations: 0 / 423.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.2971, allocations: 31.92 kB / 423.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.2973, allocations: 77.78 kB / 423.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.2973, allocations: 8 kB / 423.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002084/0.2994, allocations: 3.037 MB / 426.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2994, allocations: 0 / 426.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.3, allocations: 384.9 kB / 427.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.213e-05/0.3001, allocations: 104.8 kB / 427.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.3002, allocations: 4 kB / 427.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.3004, allocations: 31.97 kB / 427.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.159e-05/0.3005, allocations: 19.97 kB / 427.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.3005, allocations: 11.94 kB / 427.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.3007, allocations: 186 kB / 427.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3007, allocations: 0 / 427.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003875/0.3011, allocations: 95.78 kB / 427.6 MB, free: 13.65 MB / 350.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.0008945/0.302, allocations: 0.9167 MB / 428.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008182/0.3028, allocations: 445.3 kB / 428.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3029, allocations: 7.875 kB / 428.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004169/0.3033, allocations: 346.5 kB / 429.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.3037, allocations: 44.59 kB / 429.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.307, allocations: 2.722 MB / 432.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.3074, allocations: 0.7639 MB / 432.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.3075, allocations: 22.3 kB / 432.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.3076, allocations: 95.39 kB / 432.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3076, allocations: 0 / 432.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02793/0.3356, allocations: 6.551 MB / 439.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.534/9.87, allocations: 7.984 kB / 439.5 MB, free: 1.695 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches