Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001012, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 64.7 kB / 306.4 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08721/0.08835, allocations: 50.53 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003618/0.09201, allocations: 2.851 MB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009949/0.09301, allocations: 0.6856 MB / 360.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.09314, allocations: 8 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.09328, allocations: 31.75 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.09344, allocations: 71.39 kB / 360.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002014/0.09364, allocations: 75.86 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002942/0.09395, allocations: 354.5 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.09413, allocations: 107.6 kB / 361.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.09428, allocations: 135.5 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.09446, allocations: 155.3 kB / 361.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.86e-05/0.09451, allocations: 28 kB / 361.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.253e-05/0.09457, allocations: 20 kB / 361.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.068e-05/0.09464, allocations: 55.77 kB / 361.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.09479, allocations: 155.2 kB / 361.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.0951, allocations: 363 kB / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.09511, allocations: 0 / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.09511, allocations: 0 / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.09513, allocations: 0 / 362 MB, free: 9.102 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001189/0.09633, allocations: 0.6636 MB / 362.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.09637, allocations: 8.031 kB / 362.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.183e-05/0.09644, allocations: 62.72 kB / 362.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.238e-05/0.0965, allocations: 32.56 kB / 362.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.09679, allocations: 280.6 kB / 363 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.09682, allocations: 12.94 kB / 363 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.584e-05/0.09686, allocations: 28.38 kB / 363 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/0.09749, allocations: 299.5 kB / 363.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.09751, allocations: 3.984 kB / 363.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.09754, allocations: 12 kB / 363.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.09755, allocations: 8 kB / 363.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007374/0.0983, allocations: 253.5 kB / 363.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.09983, allocations: 1.085 MB / 364.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007419/0.1006, allocations: 214.5 kB / 364.9 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.1009, allocations: 88.78 kB / 365 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.1009, allocations: 4 kB / 365 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000464/0.1014, allocations: 177.8 kB / 365.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.1014, allocations: 0 / 365.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001978/0.1034, allocations: 0.5028 MB / 365.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.1035, allocations: 114.8 kB / 365.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002699/0.1037, allocations: 290.5 kB / 366.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.1038, allocations: 25.7 kB / 366.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.104, allocations: 199.5 kB / 366.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.104, allocations: 39.47 kB / 366.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.644e-05/0.1041, allocations: 53.84 kB / 366.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.959e-05/0.1042, allocations: 334.8 kB / 366.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003264/0.1045, allocations: 96.16 kB / 366.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.1049, allocations: 202.8 kB / 367 MB, free: 3.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006711/0.1056, allocations: 311.6 kB / 367.3 MB, free: 3.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1056, allocations: 0 / 367.3 MB, free: 3.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001172/0.1068, allocations: 427.7 kB / 367.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.1068, allocations: 33.7 kB / 367.7 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.1068, allocations: 7.922 kB / 367.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003283/0.1072, allocations: 72.91 kB / 367.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.1074, allocations: 51.89 kB / 367.9 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.1096, allocations: 1.582 MB / 369.4 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.1099, allocations: 59.72 kB / 369.5 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.11, allocations: 12 kB / 369.5 MB, free: 0.9453 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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: 1 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001384/0.1101, allocations: 154.7 kB / 369.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.563e-05/0.1101, allocations: 23.72 kB / 369.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.646e-05/0.1102, allocations: 21.7 kB / 369.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1102, allocations: 4 kB / 369.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.1102, allocations: 0 / 369.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1102, allocations: 4 kB / 369.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.1105, allocations: 297.3 kB / 370 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1105, allocations: 7.922 kB / 370 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.1106, allocations: 19.98 kB / 370 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/0.1108, allocations: 68.8 kB / 370.1 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.1109, allocations: 0 / 370.1 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1361/0.247, allocations: 1.58 MB / 371.7 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2471, allocations: 3.688 kB / 371.7 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009905/0.2481, allocations: 316.5 kB / 372 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.936e-05/0.2482, allocations: 115.5 kB / 372.1 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.2482, allocations: 6.125 kB / 372.1 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.2485, allocations: 25.58 kB / 372.1 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2486, allocations: 23.36 kB / 372.2 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.2486, allocations: 3.75 kB / 372.2 MB, free: 18.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.2488, allocations: 208.5 kB / 372.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2488, allocations: 0 / 372.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003754/0.2492, allocations: 75.83 kB / 372.4 MB, free: 18.84 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001178/0.2504, allocations: 0.8486 MB / 373.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009172/0.2513, allocations: 410 kB / 373.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2514, allocations: 0 / 373.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.2518, allocations: 223.6 kB / 373.9 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.2521, allocations: 50.48 kB / 374 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004822/0.2569, allocations: 3.098 MB / 377.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.2571, allocations: 0.7559 MB / 377.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.2573, allocations: 27.06 kB / 377.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.2574, allocations: 76.31 kB / 377.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2574, allocations: 2.094 kB / 377.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.2747, allocations: 6.182 MB / 384.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/0.2749, allocations: 232.3 kB / 384.3 MB, free: 14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.041, allocations: 5.125 kB / 384.3 MB, free: 14 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,vIn.signalSource.y Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,k,opAmp.VMax.i,opAmp.VMax.v,opAmp.VMin.i,opAmp.VMin.v,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.vin,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v,vSourceNeg.V,vSourceNeg.i,vSourceNeg.n.i,vSourceNeg.n.v,vSourceNeg.p.i,vSourceNeg.p.v,vSourceNeg.v,vSourcePos.V,vSourcePos.i,vSourcePos.n.i,vSourcePos.n.v,vSourcePos.p.i,vSourcePos.p.v,vSourcePos.v