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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001563/0.001563, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 71.88 kB / 373.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1054, allocations: 53.32 MB / 426.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00505/0.1104, allocations: 3.4 MB / 430.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.1121, allocations: 0.8649 MB / 431 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.1122, allocations: 7.938 kB / 431 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.1124, allocations: 71.3 kB / 431 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000242/0.1127, allocations: 127 kB / 431.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003808/0.1131, allocations: 147.8 kB / 431.3 MB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2125/0.3256, allocations: 498.4 kB / 431.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.326, allocations: 124.6 kB / 431.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004597/0.3264, allocations: 195 kB / 432.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.3267, allocations: 203.2 kB / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.248e-05/0.3268, allocations: 48.53 kB / 432.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.3269, allocations: 51.44 kB / 432.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.974e-05/0.327, allocations: 102.4 kB / 432.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.3271, allocations: 220.9 kB / 432.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005741/0.3277, allocations: 0.5677 MB / 433.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3277, allocations: 2.344 kB / 433.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3277, allocations: 0 / 433.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.3277, allocations: 0 / 433.3 MB, free: 7.422 MB / 350.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.0009997/0.3287, allocations: 0.7154 MB / 434 MB, free: 6.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3288, allocations: 10.62 kB / 434 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.342e-05/0.3288, allocations: 69.59 kB / 434.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.329, allocations: 52.56 kB / 434.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.3294, allocations: 333.4 kB / 434.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.3294, allocations: 25.72 kB / 434.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.3294, allocations: 34.72 kB / 434.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005951/0.33, allocations: 390 kB / 434.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.33, allocations: 3.688 kB / 434.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.3301, allocations: 14.25 kB / 434.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.3301, allocations: 8.844 kB / 434.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005753/0.3307, allocations: 298.6 kB / 435.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.3327, allocations: 1.437 MB / 436.7 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006151/0.3333, allocations: 224.5 kB / 436.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.3335, allocations: 90.69 kB / 437 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.3335, allocations: 2.25 kB / 437 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.919e-05/0.3335, allocations: 36.39 kB / 437 MB, free: 5.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.3335, allocations: 3.938 kB / 437 MB, free: 5.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002131/0.3356, allocations: 0.7527 MB / 437.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.3357, allocations: 59.61 kB / 437.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.336, allocations: 319.8 kB / 438.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.336, allocations: 27.48 kB / 438.2 MB, free: 5.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.3361, allocations: 230.5 kB / 438.4 MB, free: 5.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.3362, allocations: 64.92 kB / 438.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-05/0.3363, allocations: 52.58 kB / 438.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.609e-05/0.3363, allocations: 336.6 kB / 438.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.3365, allocations: 83.45 kB / 438.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.3367, allocations: 161.3 kB / 439.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003874/0.3371, allocations: 256.2 kB / 439.3 MB, free: 4.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3371, allocations: 1.062 kB / 439.3 MB, free: 4.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009209/0.338, allocations: 421.8 kB / 439.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3381, allocations: 8.906 kB / 439.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.3381, allocations: 5.156 kB / 439.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004442/0.3385, allocations: 116 kB / 439.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.3387, allocations: 38.16 kB / 439.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003378/0.3421, allocations: 3.566 MB / 443.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.3423, allocations: 41.42 kB / 443.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.3423, allocations: 14.2 kB / 443.5 MB, free: 1.223 MB / 350.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.0001468/0.3425, allocations: 150 kB / 443.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.487e-05/0.3425, allocations: 30.25 kB / 443.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.36e-05/0.3426, allocations: 33.05 kB / 443.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3426, allocations: 3.672 kB / 443.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3426, allocations: 0 / 443.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3426, allocations: 2.484 kB / 443.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003896/0.343, allocations: 370.2 kB / 444.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.343, allocations: 0 / 444.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.636e-05/0.343, allocations: 17.5 kB / 444.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003364/0.3434, allocations: 114.8 kB / 444.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.3434, allocations: 9.031 kB / 444.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00389/0.3473, allocations: 3.463 MB / 447.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3473, allocations: 3.938 kB / 447.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.3485, allocations: 438.7 kB / 448.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.3486, allocations: 111.6 kB / 448.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.3486, allocations: 5.25 kB / 448.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.3489, allocations: 25.73 kB / 448.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.75e-05/0.3489, allocations: 11.98 kB / 448.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.3489, allocations: 4.875 kB / 448.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002852/0.3492, allocations: 229.1 kB / 448.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3492, allocations: 0 / 448.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005531/0.3498, allocations: 98.06 kB / 448.6 MB, free: 13.08 MB / 366.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.001311/0.3511, allocations: 0.9697 MB / 449.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.3522, allocations: 0.506 MB / 450.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3522, allocations: 5.469 kB / 450.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.3527, allocations: 338.9 kB / 450.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.3531, allocations: 50.28 kB / 450.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005668/0.3588, allocations: 3.266 MB / 453.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/0.3593, allocations: 0.7782 MB / 454.5 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.3594, allocations: 25.72 kB / 454.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.3596, allocations: 98.11 kB / 454.6 MB, free: 8.867 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3596, allocations: 0 / 454.6 MB, free: 8.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03907/0.3986, allocations: 7.201 MB / 461.8 MB, free: 6.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.91, allocations: 8.016 kB / 461.8 MB, free: 6.852 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.358568466734141]