Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.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.VoltageFollower,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001138/0.001138, 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.001421/0.001421, 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.497/1.497, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 59.8 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1141, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower): time 0.004727/0.1188, allocations: 2.758 MB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1208, allocations: 0.709 MB / 361.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.1212, allocations: 7.938 kB / 361.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.1215, allocations: 43.58 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003524/0.1219, allocations: 87.25 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.1223, allocations: 95.81 kB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005308/0.1228, allocations: 346.6 kB / 361.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.1231, allocations: 84.69 kB / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.1233, allocations: 135.4 kB / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.1236, allocations: 147.4 kB / 362 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.11e-05/0.1236, allocations: 28 kB / 362 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.421e-05/0.1237, allocations: 28 kB / 362 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.954e-05/0.1238, allocations: 63.77 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.124, allocations: 143.2 kB / 362.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003631/0.1244, allocations: 319.1 kB / 362.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1244, allocations: 4 kB / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1244, allocations: 3.938 kB / 362.6 MB, free: 9.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1244, allocations: 0 / 362.6 MB, free: 9.008 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00131/0.1257, allocations: 0.6379 MB / 363.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1258, allocations: 12.03 kB / 363.2 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.528e-05/0.1259, allocations: 54.72 kB / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.126, allocations: 32.56 kB / 363.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.1263, allocations: 267.5 kB / 363.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.1263, allocations: 12.81 kB / 363.6 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.1264, allocations: 20.38 kB / 363.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006658/0.127, allocations: 281.9 kB / 363.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.1271, allocations: 0 / 363.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.1271, allocations: 7.984 kB / 363.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.1271, allocations: 8 kB / 363.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007685/0.1279, allocations: 245.5 kB / 364.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.1296, allocations: 0.9063 MB / 365 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.1311, allocations: 447.3 kB / 365.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/0.1314, allocations: 92.78 kB / 365.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.1315, allocations: 0 / 365.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005303/0.132, allocations: 165.9 kB / 365.7 MB, free: 5.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.132, allocations: 3.938 kB / 365.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.002005/0.134, allocations: 0.5731 MB / 366.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.1341, allocations: 118.8 kB / 366.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.1344, allocations: 270.6 kB / 366.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.1345, allocations: 33.7 kB / 366.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.1346, allocations: 179.7 kB / 366.9 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/0.1347, allocations: 35.92 kB / 366.9 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.25e-05/0.1348, allocations: 45.61 kB / 367 MB, free: 4.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1349, allocations: 338.8 kB / 367.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003453/0.1352, allocations: 95.92 kB / 367.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003992/0.1357, allocations: 203.3 kB / 367.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007025/0.1364, allocations: 305.4 kB / 367.9 MB, free: 3.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1364, allocations: 4 kB / 367.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001175/0.1376, allocations: 435.2 kB / 368.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.1376, allocations: 37.69 kB / 368.3 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1376, allocations: 0 / 368.3 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002985/0.1379, allocations: 56.83 kB / 368.4 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002213/0.1382, allocations: 59.92 kB / 368.5 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002109/0.1403, allocations: 1.597 MB / 370.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.1406, allocations: 59.77 kB / 370.1 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.1407, allocations: 8 kB / 370.1 MB, free: 0.8516 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 (24): * Single equations (assignments): 22 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001444/0.1408, allocations: 153 kB / 370.3 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/0.1409, allocations: 27.66 kB / 370.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.1409, allocations: 21.7 kB / 370.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1409, allocations: 0 / 370.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.1409, allocations: 0 / 370.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1409, allocations: 7.984 kB / 370.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2278/0.3688, allocations: 0.6317 MB / 371 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.3688, allocations: 4.672 kB / 371 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000244/0.3691, allocations: 27.09 kB / 371 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003562/0.3695, allocations: 57.75 kB / 371 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.3695, allocations: 5.391 kB / 371.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002641/0.3722, allocations: 1.599 MB / 372.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3722, allocations: 2.875 kB / 372.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.3737, allocations: 397.1 kB / 373 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3738, allocations: 102.7 kB / 373.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.204e-05/0.3739, allocations: 5.609 kB / 373.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004474/0.3744, allocations: 33.31 kB / 373.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.636e-05/0.3745, allocations: 15.11 kB / 373.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.3745, allocations: 6.422 kB / 373.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003424/0.3749, allocations: 193.2 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3749, allocations: 0 / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007284/0.3756, allocations: 59.56 kB / 373.4 MB, free: 18.57 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 (9): * Single equations (assignments): 6 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002125/0.3778, allocations: 0.925 MB / 374.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.3793, allocations: 402.2 kB / 374.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3793, allocations: 0 / 374.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006037/0.38, allocations: 205.5 kB / 375 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004465/0.3804, allocations: 45.92 kB / 375 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006132/0.3866, allocations: 3.005 MB / 378 MB, free: 15.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.3869, allocations: 0.7466 MB / 378.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000162/0.387, allocations: 25.83 kB / 378.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.3872, allocations: 72.22 kB / 378.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3872, allocations: 0 / 378.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.4217, allocations: 5.945 MB / 384.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.58, allocations: 14.55 kB / 384.8 MB, free: 14.16 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/VoltageFollower/VoltageFollower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:Ri,Rl,Vin,Vns,Vps,f,ground.p.i,ground.p.v,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,ri.LossPower,ri.R,ri.R_actual,ri.T,ri.T_heatPort,ri.T_ref,ri.alpha,ri.i,ri.n.i,ri.n.v,ri.p.i,ri.p.v,ri.useHeatPort,ri.v,rl.LossPower,rl.R,rl.R_actual,rl.T,rl.T_heatPort,rl.T_ref,rl.alpha,rl.i,rl.n.i,rl.n.v,rl.p.i,rl.p.v,rl.useHeatPort,rl.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