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.001451/0.001451, allocations: 109.8 kB / 17.33 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001683/0.001683, allocations: 209.8 kB / 18.27 MB, free: 5.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.4 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 61.56 kB / 306.6 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09286/0.09411, allocations: 50.53 MB / 357.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004951/0.09909, allocations: 3.427 MB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.1008, allocations: 0.8455 MB / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003426/0.1012, allocations: 8 kB / 361.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.1015, allocations: 55.61 kB / 361.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00037/0.1019, allocations: 107.2 kB / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004078/0.1023, allocations: 127.8 kB / 361.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006165/0.1029, allocations: 0.4902 MB / 362.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.1033, allocations: 177 kB / 362.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000347/0.1036, allocations: 187.4 kB / 362.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.1039, allocations: 207.1 kB / 362.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.021e-05/0.104, allocations: 48 kB / 362.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.1041, allocations: 52 kB / 362.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.09e-05/0.1042, allocations: 103.6 kB / 362.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.1044, allocations: 215 kB / 363.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005494/0.105, allocations: 0.5609 MB / 363.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.105, allocations: 0 / 363.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.105, allocations: 0 / 363.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.1051, allocations: 4 kB / 363.7 MB, free: 7.648 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.001293/0.1063, allocations: 0.7019 MB / 364.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1064, allocations: 11.97 kB / 364.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.1065, allocations: 74.72 kB / 364.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002022/0.1067, allocations: 56.36 kB / 364.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.1071, allocations: 320.6 kB / 364.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.1072, allocations: 25.38 kB / 364.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.607e-05/0.1072, allocations: 39.94 kB / 364.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007171/0.1079, allocations: 386.2 kB / 365.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1079, allocations: 4 kB / 365.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.588e-05/0.108, allocations: 15.98 kB / 365.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.108, allocations: 15.94 kB / 365.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006457/0.1087, allocations: 299.8 kB / 365.6 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.1113, allocations: 1.447 MB / 367.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/0.112, allocations: 238.7 kB / 367.3 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.1122, allocations: 88.83 kB / 367.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.1122, allocations: 4 kB / 367.4 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.1122, allocations: 34.55 kB / 367.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.1123, allocations: 4 kB / 367.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002175/0.1144, allocations: 0.7647 MB / 368.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.1145, allocations: 55.34 kB / 368.2 MB, free: 2.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.1149, allocations: 316.4 kB / 368.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.1149, allocations: 29.7 kB / 368.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.115, allocations: 223.7 kB / 368.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.684e-05/0.1151, allocations: 59.19 kB / 368.8 MB, free: 2.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.816e-05/0.1152, allocations: 57.7 kB / 368.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1153, allocations: 330.8 kB / 369.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.1157, allocations: 83.95 kB / 369.3 MB, free: 1.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.116, allocations: 165.3 kB / 369.5 MB, free: 1.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005184/0.1165, allocations: 251.6 kB / 369.7 MB, free: 1.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.1165, allocations: 4 kB / 369.7 MB, free: 1.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001006/0.1175, allocations: 418.7 kB / 370.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1175, allocations: 12.06 kB / 370.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1176, allocations: 4 kB / 370.1 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004668/0.118, allocations: 117.6 kB / 370.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.1182, allocations: 39.98 kB / 370.3 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1632/0.2814, allocations: 3.555 MB / 373.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002736/0.2817, allocations: 40.3 kB / 373.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.2817, allocations: 16.83 kB / 373.9 MB, free: 17.46 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.0001613/0.2819, allocations: 154.5 kB / 374.1 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.2819, allocations: 34.72 kB / 374.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.562e-05/0.282, allocations: 30.17 kB / 374.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.282, allocations: 6.109 kB / 374.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.282, allocations: 1.094 kB / 374.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.282, allocations: 1.406 kB / 374.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003781/0.2824, allocations: 370.4 kB / 374.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2824, allocations: 1.516 kB / 374.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.386e-05/0.2825, allocations: 13.09 kB / 374.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003849/0.2829, allocations: 114.8 kB / 374.6 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.283, allocations: 5.969 kB / 374.6 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00286/0.2858, allocations: 3.472 MB / 378.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2858, allocations: 0.75 kB / 378.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009266/0.2868, allocations: 428.3 kB / 378.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.852e-05/0.2868, allocations: 111.5 kB / 378.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.2869, allocations: 0.6094 kB / 378.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.2871, allocations: 26.66 kB / 378.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.335e-05/0.2872, allocations: 25.5 kB / 378.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.2872, allocations: 3.406 kB / 378.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.2874, allocations: 221.6 kB / 378.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2874, allocations: 4 kB / 378.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004912/0.2879, allocations: 100.8 kB / 379 MB, free: 13.66 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.0009874/0.2889, allocations: 0.9641 MB / 380 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009889/0.2899, allocations: 0.5167 MB / 380.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.2899, allocations: 1.375 kB / 380.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003647/0.2903, allocations: 343.1 kB / 380.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.2908, allocations: 49.36 kB / 380.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.2952, allocations: 3.402 MB / 384.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.2955, allocations: 0.7833 MB / 385 MB, free: 9.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.2956, allocations: 26.44 kB / 385.1 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.2957, allocations: 102 kB / 385.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2957, allocations: 3.719 kB / 385.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.3201, allocations: 6.906 MB / 392.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/0.3203, allocations: 239.2 kB / 392.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.02/2.341, allocations: 3.938 kB / 392.3 MB, free: 7.332 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