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.0008205/0.0008205, allocations: 95.19 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000972/0.0009721, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000195/0.0001951, allocations: 11.94 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07735/0.07756, allocations: 51.51 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002608/0.0802, allocations: 2.699 MB / 362 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009573/0.08117, allocations: 0.7324 MB / 362.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.871e-05/0.08128, allocations: 8 kB / 362.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.08139, allocations: 39.62 kB / 362.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.08155, allocations: 95.28 kB / 362.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.08178, allocations: 83.86 kB / 363 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003276/0.08211, allocations: 394.2 kB / 363.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.08229, allocations: 100.7 kB / 363.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.08248, allocations: 135.4 kB / 363.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.08263, allocations: 151.2 kB / 363.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/0.08267, allocations: 16 kB / 363.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.506e-05/0.08274, allocations: 24 kB / 363.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.104e-05/0.0828, allocations: 63.73 kB / 363.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.08293, allocations: 180.8 kB / 364 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002959/0.08323, allocations: 362.8 kB / 364.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.08324, allocations: 0 / 364.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.08325, allocations: 4 kB / 364.4 MB, free: 8.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.08326, allocations: 0 / 364.4 MB, free: 8.125 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0007823/0.08404, allocations: 0.5964 MB / 365 MB, free: 7.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.08408, allocations: 8.031 kB / 365 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.714e-05/0.08415, allocations: 62.72 kB / 365.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.0843, allocations: 52.45 kB / 365.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.08457, allocations: 279.6 kB / 365.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.0846, allocations: 24.94 kB / 365.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.08464, allocations: 24.38 kB / 365.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004628/0.08511, allocations: 269 kB / 365.7 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.08513, allocations: 3.938 kB / 365.7 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.08516, allocations: 12 kB / 365.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.08517, allocations: 4 kB / 365.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004595/0.08563, allocations: 238.1 kB / 366 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.0871, allocations: 0.9911 MB / 366.9 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/0.0876, allocations: 315.6 kB / 367.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.08783, allocations: 115.8 kB / 367.4 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.08785, allocations: 4 kB / 367.4 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.08788, allocations: 38.5 kB / 367.4 MB, free: 4.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.08789, allocations: 0 / 367.4 MB, free: 4.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001179/0.08907, allocations: 0.591 MB / 368 MB, free: 4.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/0.08911, allocations: 51.41 kB / 368.1 MB, free: 4.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.08934, allocations: 258.6 kB / 368.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.08937, allocations: 29.7 kB / 368.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.976e-05/0.08948, allocations: 187.9 kB / 368.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.08952, allocations: 63.02 kB / 368.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.08957, allocations: 33.7 kB / 368.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.08968, allocations: 334.8 kB / 368.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.08987, allocations: 80.42 kB / 369 MB, free: 3.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.09009, allocations: 123.4 kB / 369.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.09047, allocations: 195.1 kB / 369.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.09048, allocations: 0 / 369.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006064/0.09109, allocations: 342.8 kB / 369.7 MB, free: 2.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.09112, allocations: 8 kB / 369.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.09112, allocations: 3.938 kB / 369.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/0.09137, allocations: 73.67 kB / 369.7 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.09157, allocations: 43.97 kB / 369.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1307/0.2223, allocations: 2.834 MB / 372.6 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.2226, allocations: 30.98 kB / 372.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.2226, allocations: 8.281 kB / 372.7 MB, free: 18.04 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 (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.0001353/0.2228, allocations: 144.9 kB / 372.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.2228, allocations: 28.52 kB / 372.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.382e-05/0.2229, allocations: 34.45 kB / 372.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2229, allocations: 2.812 kB / 372.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.2229, allocations: 6.031 kB / 372.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2229, allocations: 1.172 kB / 372.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009544/0.2239, allocations: 0.6974 MB / 373.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2239, allocations: 3.438 kB / 373.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.224, allocations: 35.66 kB / 373.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001989/0.2242, allocations: 77.3 kB / 373.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.2242, allocations: 1.531 kB / 373.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.2257, allocations: 2.831 MB / 376.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2257, allocations: 1 kB / 376.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006067/0.2263, allocations: 398.5 kB / 376.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.531e-05/0.2264, allocations: 110.6 kB / 377 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.2264, allocations: 5.219 kB / 377 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.2267, allocations: 39.02 kB / 377.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/0.2267, allocations: 20.97 kB / 377.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.2268, allocations: 6.219 kB / 377.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001775/0.2269, allocations: 192.3 kB / 377.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2269, allocations: 0 / 377.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.2273, allocations: 92.09 kB / 377.4 MB, free: 14.72 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 (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.0007657/0.2281, allocations: 0.9331 MB / 378.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000702/0.2288, allocations: 457.6 kB / 378.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2288, allocations: 1.406 kB / 378.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003465/0.2292, allocations: 364.4 kB / 379.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.2295, allocations: 51.02 kB / 379.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.2325, allocations: 2.886 MB / 382 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.2326, allocations: 0.7641 MB / 382.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.2328, allocations: 25.28 kB / 382.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.156e-05/0.2329, allocations: 90.11 kB / 382.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.2329, allocations: 0 / 382.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01656/0.2494, allocations: 5.865 MB / 388.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/0.2496, allocations: 228.6 kB / 389 MB, free: 9.867 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/1.986, allocations: 0 / 389 MB, free: 9.867 MB / 302.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