Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 106.5 kB / 17.73 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001905/0.001906, allocations: 191 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001498, allocations: 56.39 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.0971, allocations: 46.61 MB / 374.7 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004484/0.1016, allocations: 2.758 MB / 377.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.1034, allocations: 0.6861 MB / 378.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003492/0.1038, allocations: 8 kB / 378.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.1041, allocations: 43.58 kB / 378.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003838/0.1045, allocations: 87.19 kB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004062/0.1049, allocations: 91.81 kB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006144/0.1055, allocations: 386.3 kB / 378.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.1058, allocations: 114.9 kB / 378.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/0.1061, allocations: 147.5 kB / 379 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.1063, allocations: 167.3 kB / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.011e-05/0.1064, allocations: 39.94 kB / 379.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.668e-05/0.1065, allocations: 32 kB / 379.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.778e-05/0.1066, allocations: 67.83 kB / 379.3 MB, free: 464 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.1067, allocations: 163.2 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2038/0.3106, allocations: 377.3 kB / 379.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.3107, allocations: 1.25 kB / 379.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3107, allocations: 0 / 379.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.423e-05/0.3107, allocations: 0 / 379.8 MB, free: 10.08 MB / 318.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.001426/0.3121, allocations: 0.6491 MB / 380.4 MB, free: 9.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.3122, allocations: 10.19 kB / 380.4 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.087e-05/0.3123, allocations: 61.27 kB / 380.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.157e-05/0.3123, allocations: 34.28 kB / 380.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.3127, allocations: 275.9 kB / 380.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.3127, allocations: 17.22 kB / 380.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.335e-05/0.3128, allocations: 27.8 kB / 380.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.3135, allocations: 305.3 kB / 381.1 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3135, allocations: 0 / 381.1 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.3135, allocations: 9.656 kB / 381.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.3135, allocations: 6.156 kB / 381.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.3144, allocations: 252.4 kB / 381.4 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001643/0.316, allocations: 1.089 MB / 382.5 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008549/0.3169, allocations: 209.8 kB / 382.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003228/0.3172, allocations: 92.14 kB / 382.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.3173, allocations: 1.531 kB / 382.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005011/0.3178, allocations: 177.6 kB / 383 MB, free: 8.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.683e-06/0.3178, allocations: 0 / 383 MB, free: 8.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002229/0.32, allocations: 0.5073 MB / 383.5 MB, free: 8.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.3201, allocations: 105.1 kB / 383.6 MB, free: 8.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.3204, allocations: 282.8 kB / 383.9 MB, free: 8.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.3204, allocations: 30.55 kB / 383.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.3206, allocations: 198.5 kB / 384.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.3206, allocations: 40.33 kB / 384.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.281e-05/0.3207, allocations: 48.14 kB / 384.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.731e-05/0.3208, allocations: 340.4 kB / 384.5 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.3211, allocations: 91.95 kB / 384.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.3215, allocations: 198.8 kB / 384.8 MB, free: 7.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006871/0.3222, allocations: 304.2 kB / 385.1 MB, free: 7.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/0.3222, allocations: 5.25 kB / 385.1 MB, free: 7.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001241/0.3235, allocations: 428.3 kB / 385.5 MB, free: 7.289 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.3235, allocations: 33.66 kB / 385.5 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3236, allocations: 3.891 kB / 385.5 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003751/0.3239, allocations: 79.38 kB / 385.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.3242, allocations: 46.59 kB / 385.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002308/0.3265, allocations: 1.717 MB / 387.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004064/0.3269, allocations: 57.09 kB / 387.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.327, allocations: 15.09 kB / 387.4 MB, free: 5.855 MB / 318.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.0001628/0.3271, allocations: 151.8 kB / 387.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.39e-05/0.3272, allocations: 27.34 kB / 387.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.47e-05/0.3272, allocations: 24.59 kB / 387.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3272, allocations: 2.156 kB / 387.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3273, allocations: 3.047 kB / 387.7 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3273, allocations: 0.5156 kB / 387.7 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.3276, allocations: 304.6 kB / 387.9 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3276, allocations: 1.188 kB / 387.9 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.3277, allocations: 18.03 kB / 388 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.328, allocations: 71.67 kB / 388 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.3281, allocations: 2.391 kB / 388 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.3301, allocations: 1.713 MB / 389.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3301, allocations: 0 / 389.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.3313, allocations: 308.4 kB / 390.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.3314, allocations: 115.5 kB / 390.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.3314, allocations: 7.578 kB / 390.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.3317, allocations: 28.77 kB / 390.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.3318, allocations: 24.53 kB / 390.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.3318, allocations: 4.703 kB / 390.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.3321, allocations: 204 kB / 390.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.402e-06/0.3321, allocations: 0 / 390.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004686/0.3326, allocations: 87.69 kB / 390.5 MB, free: 3.527 MB / 318.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.00139/0.334, allocations: 0.8462 MB / 391.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.3351, allocations: 412.5 kB / 391.8 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3351, allocations: 2.516 kB / 391.8 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004826/0.3356, allocations: 227.2 kB / 392 MB, free: 2.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.336, allocations: 47.88 kB / 392 MB, free: 2.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005988/0.342, allocations: 2.995 MB / 395 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.3423, allocations: 0.754 MB / 395.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001417/0.3425, allocations: 27.36 kB / 395.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.3426, allocations: 74.67 kB / 395.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3426, allocations: 1.75 kB / 395.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03198/0.3746, allocations: 6.952 MB / 402.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.87, allocations: 12.17 kB / 402.8 MB, free: 13.54 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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