Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001024, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 60.17 kB / 306.4 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08083/0.08196, allocations: 50.52 MB / 356.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004263/0.08625, allocations: 3.427 MB / 360.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.08747, allocations: 0.8572 MB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.08762, allocations: 4 kB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.08779, allocations: 47.61 kB / 361.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001765/0.08798, allocations: 103.2 kB / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.08825, allocations: 135.8 kB / 361.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.08862, allocations: 474 kB / 361.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.08885, allocations: 153.4 kB / 362.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.08907, allocations: 163.4 kB / 362.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.08926, allocations: 195 kB / 362.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.533e-05/0.08931, allocations: 28 kB / 362.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.486e-05/0.0894, allocations: 31.98 kB / 362.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.998e-05/0.08947, allocations: 75.69 kB / 362.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.08963, allocations: 199 kB / 362.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.09005, allocations: 0.5414 MB / 363.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.09006, allocations: 0 / 363.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.09007, allocations: 0 / 363.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.09008, allocations: 0 / 363.3 MB, free: 7.875 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0009805/0.09106, allocations: 0.7079 MB / 364 MB, free: 7.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.0911, allocations: 12.03 kB / 364 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.287e-05/0.09118, allocations: 82.66 kB / 364.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.09136, allocations: 52.36 kB / 364.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.09167, allocations: 320.6 kB / 364.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.0917, allocations: 21.38 kB / 364.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.09175, allocations: 39.94 kB / 364.5 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00062/0.09238, allocations: 382.2 kB / 364.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.0924, allocations: 7.984 kB / 364.9 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.09244, allocations: 19.94 kB / 364.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.09246, allocations: 11.98 kB / 364.9 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005838/0.09305, allocations: 299.8 kB / 365.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.09502, allocations: 1.443 MB / 366.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005748/0.0956, allocations: 238.7 kB / 366.9 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.09581, allocations: 92.81 kB / 367 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.09584, allocations: 0 / 367 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.09587, allocations: 38.56 kB / 367 MB, free: 3.918 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.193e-06/0.09588, allocations: 4 kB / 367 MB, free: 3.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002016/0.0979, allocations: 0.757 MB / 367.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.09794, allocations: 59.34 kB / 367.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.09824, allocations: 316.4 kB / 368.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.09828, allocations: 33.7 kB / 368.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.09841, allocations: 223.7 kB / 368.4 MB, free: 2.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.744e-05/0.09845, allocations: 59.19 kB / 368.5 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.543e-05/0.09853, allocations: 49.7 kB / 368.5 MB, free: 2.348 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.919e-05/0.09864, allocations: 342.8 kB / 368.8 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.09884, allocations: 79.95 kB / 368.9 MB, free: 1.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.09909, allocations: 161.4 kB / 369.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/0.0995, allocations: 245.2 kB / 369.3 MB, free: 1.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.676e-06/0.09951, allocations: 0 / 369.3 MB, free: 1.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009065/0.1004, allocations: 425.8 kB / 369.7 MB, free: 1.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1005, allocations: 11.94 kB / 369.7 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1005, allocations: 8.062 kB / 369.8 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004242/0.1009, allocations: 117.6 kB / 369.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.1011, allocations: 43.91 kB / 369.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1414/0.2424, allocations: 3.253 MB / 373.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/0.2427, allocations: 38.2 kB / 373.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.2427, allocations: 13.02 kB / 373.2 MB, free: 17.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001547/0.2429, allocations: 162.6 kB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.425e-05/0.2429, allocations: 25.41 kB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.113e-05/0.243, allocations: 27.27 kB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.243, allocations: 5.828 kB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.243, allocations: 1.094 kB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.243, allocations: 3.844 kB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.2434, allocations: 367.7 kB / 373.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2434, allocations: 0.875 kB / 373.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.099e-05/0.2435, allocations: 17.84 kB / 373.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003677/0.2439, allocations: 109.8 kB / 373.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2439, allocations: 8.344 kB / 373.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/0.2465, allocations: 3.171 MB / 377.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2465, allocations: 0 / 377.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008223/0.2473, allocations: 434 kB / 377.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.664e-05/0.2474, allocations: 104.6 kB / 377.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.2474, allocations: 10.3 kB / 377.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.2476, allocations: 27.05 kB / 377.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.2477, allocations: 16.47 kB / 377.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.2477, allocations: 4.875 kB / 377.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.2479, allocations: 228.9 kB / 377.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.248, allocations: 0 / 377.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004649/0.2484, allocations: 102.7 kB / 378 MB, free: 14.2 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 (9): * Single equations (assignments): 7 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009684/0.2494, allocations: 0.9664 MB / 379 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009732/0.2504, allocations: 0.5065 MB / 379.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2504, allocations: 1.375 kB / 379.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.2508, allocations: 349.8 kB / 379.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.2512, allocations: 43.89 kB / 379.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.2554, allocations: 3.409 MB / 383.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.2556, allocations: 0.7803 MB / 384.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.2557, allocations: 34.33 kB / 384.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.2558, allocations: 105.1 kB / 384.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2558, allocations: 0 / 384.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.2745, allocations: 6.658 MB / 390.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/0.2746, allocations: 234.6 kB / 391.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.122, allocations: 3.938 kB / 391.1 MB, free: 8.008 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches