Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 51.92 kB / 347.3 MB, free: 9.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.284, allocations: 49.15 MB / 396.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005942/0.29, allocations: 5.027 MB / 401.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003168/0.2931, allocations: 1.413 MB / 402.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00057/0.2937, allocations: 18.62 kB / 402.9 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003583/0.2941, allocations: 158.6 kB / 403 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005597/0.2946, allocations: 284.6 kB / 403.3 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007462/0.2954, allocations: 353.9 kB / 403.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009954/0.2964, allocations: 1.244 MB / 404.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.2968, allocations: 276.7 kB / 405.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005391/0.2973, allocations: 473.1 kB / 405.6 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005377/0.2978, allocations: 467.3 kB / 406.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.298, allocations: 127.8 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002742/0.2983, allocations: 154.3 kB / 406.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.2984, allocations: 256.1 kB / 406.6 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003548/0.2988, allocations: 458.1 kB / 407 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001246/0.3, allocations: 1.422 MB / 408.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3, allocations: 3.938 kB / 408.5 MB, free: 1.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3, allocations: 4 kB / 408.5 MB, free: 1.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.3, allocations: 0 / 408.5 MB, free: 1.715 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002229/0.3023, allocations: 1.245 MB / 409.7 MB, free: 0.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3023, allocations: 14.11 kB / 409.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.3024, allocations: 129.1 kB / 409.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.3026, allocations: 109.4 kB / 410 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006646/0.3033, allocations: 465.9 kB / 410.4 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.3033, allocations: 58.19 kB / 410.5 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.3034, allocations: 84.95 kB / 410.6 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.305, allocations: 1.082 MB / 411.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.305, allocations: 0 / 411.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.3051, allocations: 31.66 kB / 411.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.3051, allocations: 24.06 kB / 411.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.3067, allocations: 0.7795 MB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00503/0.3117, allocations: 2.715 MB / 415.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3128, allocations: 0.5943 MB / 415.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006482/0.3135, allocations: 372.2 kB / 416.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.064e-05/0.3135, allocations: 13.2 kB / 416.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.3136, allocations: 44.28 kB / 416.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 3.346e-06/0.3136, allocations: 0 / 416.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004547/0.3181, allocations: 2.125 MB / 418.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.3182, allocations: 59.41 kB / 418.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006481/0.3188, allocations: 0.5118 MB / 418.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.508e-05/0.3189, allocations: 41.92 kB / 418.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.3192, allocations: 404.2 kB / 419.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.3194, allocations: 266.6 kB / 419.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.3197, allocations: 137.6 kB / 419.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.3199, allocations: 373.9 kB / 420.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006237/0.3205, allocations: 307.9 kB / 420.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007303/0.3212, allocations: 426.2 kB / 420.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.3227, allocations: 0.7461 MB / 421.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3227, allocations: 0 / 421.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002323/0.325, allocations: 1.035 MB / 422.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.325, allocations: 6.469 kB / 422.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.325, allocations: 1.531 kB / 422.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006239/0.3257, allocations: 184.1 kB / 422.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008232/0.3265, allocations: 192.3 kB / 423 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004181/0.3307, allocations: 2.727 MB / 425.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007314/0.3314, allocations: 36.05 kB / 425.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.852e-05/0.3315, allocations: 31.98 kB / 425.8 MB, free: 5.137 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004369/0.3319, allocations: 221.7 kB / 426 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.3321, allocations: 75.53 kB / 426.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.3322, allocations: 90.16 kB / 426.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3323, allocations: 7.938 kB / 426.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-05/0.3323, allocations: 4 kB / 426.2 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3323, allocations: 7.984 kB / 426.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.3333, allocations: 0.6731 MB / 426.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3333, allocations: 3.984 kB / 426.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006993/0.334, allocations: 143.8 kB / 427 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005183/0.3345, allocations: 176.7 kB / 427.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.3346, allocations: 23.98 kB / 427.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00378/0.3384, allocations: 2.716 MB / 429.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3384, allocations: 0 / 429.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00273/0.3411, allocations: 1.377 MB / 431.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.3413, allocations: 67.52 kB / 431.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.3414, allocations: 20 kB / 431.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005834/0.342, allocations: 51.95 kB / 431.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.3421, allocations: 60.52 kB / 431.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.613e-05/0.3422, allocations: 24.23 kB / 431.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004513/0.3427, allocations: 354.9 kB / 431.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3427, allocations: 4 kB / 431.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008299/0.3435, allocations: 224.1 kB / 432.1 MB, free: 14.66 MB / 350.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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003079/0.3466, allocations: 1.961 MB / 434 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002327/0.3489, allocations: 0.9589 MB / 435 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3489, allocations: 0 / 435 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.3503, allocations: 0.6119 MB / 435.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007919/0.3511, allocations: 126.5 kB / 435.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.3625, allocations: 6.891 MB / 442.6 MB, free: 3.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004299/0.363, allocations: 365.3 kB / 443 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004254/0.3634, allocations: 81.06 kB / 443 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004644/0.3638, allocations: 295.3 kB / 443.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of SimCode: time 1.183e-06/0.3638, allocations: 0 / 443.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0589/0.4227, allocations: 19.15 MB / 462.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.75, allocations: 7.797 kB / 462.5 MB, free: 15.89 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.025757050141692] Failed to read output from testmodel.py, exit status != 0: ['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'] 11.86940545309335 11.898245906 11.59327348 Calling exit ...