Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, 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.001342/0.001342, 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.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 60 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.108, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007658/0.1157, allocations: 6.091 MB / 363.7 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003325/0.119, allocations: 1.544 MB / 365.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007836/0.1199, allocations: 23.94 kB / 365.2 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005737/0.1205, allocations: 170.3 kB / 365.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009956/0.1215, allocations: 297.2 kB / 365.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1225, allocations: 411.4 kB / 366.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001572/0.1241, allocations: 1.387 MB / 367.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006381/0.1247, allocations: 433.2 kB / 367.9 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007175/0.1255, allocations: 0.4945 MB / 368.4 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006962/0.1262, allocations: 0.568 MB / 369 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002507/0.1264, allocations: 136 kB / 369.1 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003705/0.1268, allocations: 180 kB / 369.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002503/0.1271, allocations: 275.1 kB / 369.5 MB, free: 1.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006582/0.1277, allocations: 0.5833 MB / 370.1 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1602/0.288, allocations: 1.523 MB / 371.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.288, allocations: 8.453 kB / 371.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.288, allocations: 0.5 kB / 371.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.653e-05/0.2881, allocations: 0.625 kB / 371.7 MB, free: 12.91 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002821/0.2909, allocations: 1.381 MB / 373 MB, free: 12.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.291, allocations: 10.44 kB / 373 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.2911, allocations: 139.8 kB / 373.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003805/0.2915, allocations: 125.8 kB / 373.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007953/0.2923, allocations: 0.5443 MB / 373.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.527e-05/0.2924, allocations: 65.09 kB / 373.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.2926, allocations: 89.97 kB / 374 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.2943, allocations: 0.8594 MB / 374.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.2944, allocations: 1.766 kB / 374.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-05/0.2945, allocations: 36.09 kB / 374.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.847e-05/0.2945, allocations: 20.78 kB / 374.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.2963, allocations: 0.8586 MB / 375.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005161/0.3015, allocations: 3.232 MB / 379 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.3026, allocations: 0.6639 MB / 379.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006542/0.3033, allocations: 438.1 kB / 380.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.383e-05/0.3033, allocations: 14.22 kB / 380.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3034, allocations: 43.28 kB / 380.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.505e-06/0.3034, allocations: 0 / 380.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004247/0.3076, allocations: 2.267 MB / 382.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.3077, allocations: 59.23 kB / 382.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007039/0.3084, allocations: 0.6049 MB / 383.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.3084, allocations: 41.14 kB / 383.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.3087, allocations: 443.6 kB / 383.6 MB, free: 8.188 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3088, allocations: 256.8 kB / 383.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002439/0.3091, allocations: 154 kB / 384 MB, free: 7.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3092, allocations: 385.2 kB / 384.3 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006325/0.3098, allocations: 325.3 kB / 384.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007079/0.3105, allocations: 471.5 kB / 385.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.3119, allocations: 0.8083 MB / 385.9 MB, free: 6.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3119, allocations: 1.344 kB / 385.9 MB, free: 6.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002173/0.3141, allocations: 1.116 MB / 387 MB, free: 6.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.3141, allocations: 6.156 kB / 387 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.3141, allocations: 9.172 kB / 387.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005699/0.3147, allocations: 186.7 kB / 387.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008913/0.3156, allocations: 197.6 kB / 387.4 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.319, allocations: 2.89 MB / 390.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007977/0.3198, allocations: 44.59 kB / 390.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.737e-05/0.3199, allocations: 34.7 kB / 390.4 MB, free: 3.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004676/0.3204, allocations: 230.1 kB / 390.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.3205, allocations: 83.73 kB / 390.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001819/0.3207, allocations: 90.5 kB / 390.8 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3207, allocations: 7.812 kB / 390.8 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.145e-05/0.3208, allocations: 3.25 kB / 390.8 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.3208, allocations: 7.375 kB / 390.8 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.3219, allocations: 0.8844 MB / 391.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3219, allocations: 7.781 kB / 391.7 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007417/0.3227, allocations: 144.3 kB / 391.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005165/0.3232, allocations: 182.8 kB / 392 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-05/0.3233, allocations: 23.89 kB / 392 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00311/0.3264, allocations: 2.894 MB / 394.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3264, allocations: 5.344 kB / 394.9 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.3289, allocations: 1.425 MB / 396.4 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.3291, allocations: 148.5 kB / 396.5 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.3292, allocations: 18.56 kB / 396.5 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006057/0.3298, allocations: 52.69 kB / 396.6 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3299, allocations: 52.39 kB / 396.6 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/0.33, allocations: 22.62 kB / 396.7 MB, free: 16 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005193/0.3305, allocations: 430.6 kB / 397.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3305, allocations: 4 kB / 397.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008758/0.3314, allocations: 239.1 kB / 397.3 MB, free: 15.79 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002999/0.3344, allocations: 2.004 MB / 399.3 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002612/0.337, allocations: 1.065 MB / 400.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.337, allocations: 0.8125 kB / 400.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.3385, allocations: 0.6383 MB / 401 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008934/0.3394, allocations: 149.9 kB / 401.2 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/0.3515, allocations: 7.724 MB / 408.9 MB, free: 5.535 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.3521, allocations: 0.9879 MB / 409.9 MB, free: 4.523 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004277/0.3525, allocations: 81.48 kB / 410 MB, free: 4.441 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004346/0.353, allocations: 327.3 kB / 410.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.353, allocations: 0 / 410.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04476/0.3977, allocations: 18.69 MB / 429 MB, free: 1.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.756/10.15, allocations: 0 / 429 MB, free: 1.707 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=1.000000 File[2504]=0.000000 Error: Could not read variable Transistor1.Tr.C.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor1.Tr.C.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor1.ct.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor1.ct.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor2.Tr.C.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor2.Tr.C.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! Error: Could not read variable Transistor2.ct.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv. Warning: Get data of variable Transistor2.ct.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv failed! " Variables in the reference:time,C1.v,C2.v,C3.v,C4.v,C5.v,Transistor1.Tr.C.v,Transistor1.ct.v,Transistor2.Tr.C.v,Transistor2.ct.v Variables in the result:time,C1.v,C2.v,C3.v,C4.v,C5.v