Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Adder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001211/0.001211, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001252/0.001253, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 63.56 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07445/0.07549, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.003709/0.07923, allocations: 3.199 MB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.0803, allocations: 0.8142 MB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.08043, allocations: 4 kB / 361.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.0806, allocations: 67.36 kB / 361.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.08077, allocations: 107 kB / 361.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002589/0.08104, allocations: 139.8 kB / 361.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.08138, allocations: 446.2 kB / 362.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.08161, allocations: 151.9 kB / 362.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.08182, allocations: 167.4 kB / 362.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.08199, allocations: 183.2 kB / 362.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.664e-05/0.08205, allocations: 48 kB / 362.9 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.967e-05/0.08213, allocations: 48 kB / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.824e-05/0.0822, allocations: 91.69 kB / 363 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.08234, allocations: 191.1 kB / 363.2 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.08271, allocations: 0.4947 MB / 363.7 MB, free: 7.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.08272, allocations: 3.938 kB / 363.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.08273, allocations: 0 / 363.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.08274, allocations: 0 / 363.7 MB, free: 7.824 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0008933/0.08364, allocations: 0.682 MB / 364.4 MB, free: 7.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.08368, allocations: 8.031 kB / 364.4 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.15e-05/0.08375, allocations: 70.72 kB / 364.5 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.0839, allocations: 52.45 kB / 364.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.0842, allocations: 307.5 kB / 364.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.08422, allocations: 21.03 kB / 364.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.08426, allocations: 32.38 kB / 364.9 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005253/0.08479, allocations: 353.1 kB / 365.2 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.08481, allocations: 0 / 365.2 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.08485, allocations: 12 kB / 365.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.08486, allocations: 12 kB / 365.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.08539, allocations: 266.5 kB / 365.5 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.08703, allocations: 1.272 MB / 366.8 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005198/0.08756, allocations: 295.8 kB / 367.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.08776, allocations: 100.8 kB / 367.2 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.08779, allocations: 3.984 kB / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.08781, allocations: 34.56 kB / 367.2 MB, free: 4.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.133e-06/0.08782, allocations: 0 / 367.2 MB, free: 4.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001889/0.08971, allocations: 0.6461 MB / 367.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.08975, allocations: 51.41 kB / 367.9 MB, free: 3.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.09002, allocations: 302.9 kB / 368.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.09004, allocations: 25.7 kB / 368.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.09016, allocations: 215.8 kB / 368.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.0902, allocations: 55.34 kB / 368.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.991e-05/0.09027, allocations: 49.61 kB / 368.5 MB, free: 2.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.141e-05/0.09037, allocations: 338.8 kB / 368.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.09056, allocations: 71.97 kB / 368.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.09078, allocations: 162.2 kB / 369.1 MB, free: 2.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.09118, allocations: 250 kB / 369.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.09119, allocations: 0 / 369.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008547/0.09205, allocations: 416.6 kB / 369.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.09207, allocations: 11.94 kB / 369.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.09208, allocations: 0 / 369.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000358/0.09245, allocations: 108.8 kB / 369.9 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.09259, allocations: 51.91 kB / 369.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1362/0.2288, allocations: 2.153 MB / 372.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.2291, allocations: 34.34 kB / 372.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.2291, allocations: 12.23 kB / 372.1 MB, free: 18.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (22): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.2293, allocations: 161.1 kB / 372.3 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.189e-05/0.2293, allocations: 25.75 kB / 372.3 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.695e-05/0.2294, allocations: 31.02 kB / 372.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.2294, allocations: 2.875 kB / 372.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.2294, allocations: 1.438 kB / 372.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2294, allocations: 1.234 kB / 372.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.2306, allocations: 0.7245 MB / 373 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2306, allocations: 1.656 kB / 373.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.066e-05/0.2307, allocations: 16.06 kB / 373.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003298/0.231, allocations: 100.9 kB / 373.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.231, allocations: 3.562 kB / 373.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.2333, allocations: 2.163 MB / 375.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2333, allocations: 0 / 375.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008151/0.2342, allocations: 414 kB / 375.7 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.277e-05/0.2342, allocations: 105.7 kB / 375.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.2343, allocations: 1.828 kB / 375.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.2345, allocations: 26.77 kB / 375.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.2345, allocations: 12.08 kB / 375.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.2345, allocations: 2.438 kB / 375.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002139/0.2348, allocations: 213.8 kB / 376.1 MB, free: 16.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2348, allocations: 4.312 kB / 376.1 MB, free: 16.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004716/0.2352, allocations: 87.8 kB / 376.2 MB, free: 16.32 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 (8): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009316/0.2362, allocations: 0.9543 MB / 377.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006326/0.2368, allocations: 343.7 kB / 377.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2368, allocations: 0 / 377.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003/0.2371, allocations: 229 kB / 377.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.2375, allocations: 48.64 kB / 377.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.2415, allocations: 3.165 MB / 380.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.2417, allocations: 0.769 MB / 381.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.2418, allocations: 30.3 kB / 381.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.705e-05/0.2419, allocations: 96.64 kB / 381.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2419, allocations: 0 / 381.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.393/1.635, allocations: 6.495 MB / 388.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.73/18.36, allocations: 5.453 kB / 388.3 MB, free: 10.94 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Adder/Adder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Adder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches